哪位朋友帮我看一下这个画函数图象的matlab变成有什么错误,感激不尽,在线等,急!

2024-12-12 08:35:59
推荐回答(2个)
回答1:

点除 ./ 不是 /

a=0.1;
b=-0.1;
r=20.1;
e=2.71828;
t=0:0.01:10;
y=1./(1-r./(a+b*e.^(r*t)));
plot(t,y,'*r')

回答2:

a=0.1;
b=-0.1;
r=20.1;
e=2.71828;
t=0:1:100;
y=1./(1-r./(a+b*e.^(r*t)));
plot(t,y,'*r')