help with programming in matlab - laplace and stepinfo to see overshooting
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
in my program i'm trying to see a functions settling time and over-shoot, it can be usually done with "stepinfo", but i cannot manage to do it right, what can i do better?
syms s t
c=1200; k=1/6;
G=1/(3*s^2+c*s+k);
y=ilaplace(G,s,t);
fplot(matlabFunction(y), [0,5],'r')
grid on
title('The Shock Response - y(t)','fontweight','bold')
xlabel('t(sec)')
ylabel('y(m)')
legend('y(t)')
t=0:0.01:10;
stepinfo(y,t);
the errors:
Error using stepinfo (line 58)
The input arguments "Y" and "T" of the "stepinfo" and "lsiminfo" command must have compatible sizes.
Error in q2C (line 15)
stepinfo(y,t);
Sagi.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!