How Can I Plot y=10*exp(-5*t)*t function?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!