How Can I Plot y=10*exp(-5*t)*t function?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Mathematics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!