help with programming in matlab - laplace and stepinfo to see overshooting
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!