How Can I Plot y=10*exp(-5*t)*t function?
显示 更早的评论
I wrote this code given in the below;
t=0:0.01:1;
y=10*t*exp((-5)*t);
x=exp((-5)*t)*((-5)*t+1);
plot(t,y,'k');
hold on;
plot(t,x,'r');
and I give this error; Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in the second matrix. To perform elementwise
multiplication, use '.*'.
How can i handle it.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!