How to draw the response to a negative step command in matlab?
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi everyone, I am doing a MSc project and I need to draw the response of a transfer function to a negative step input. Can you please elaborate how can I do this? and Also how can I change the time step in order to achieve a smooth time response?
Thanks in advance
P.s. The transfer function code is as follow:
sys=tf([0.421 -0.6734 -23.46 -71.02 -229 -359.5 -2.766 0.034 0.0002239 -6.719e-16],[1 24.5 102.2 344.8 765.8 915.2 685.6 19.19 4.86 0.05328 -3.802e-15])
0 commentaires
Réponses (1)
Star Strider
le 26 Déc 2016
Use the StepDataOptions function to set the options for the step function. You need to set the amplitude to -1.
The Code:
sys=tf([0.421 -0.6734 -23.46 -71.02 -229 -359.5 -2.766 0.034 0.0002239 -6.719e-16],[1 24.5 102.2 344.8 765.8 915.2 685.6 19.19 4.86 0.05328 -3.802e-15])
opt = stepDataOptions('StepAmplitude',-1);
[y,t] = step(sys,opt);
figure(1)
plot(t, y)
0 commentaires
Voir également
Catégories
En savoir plus sur Digital Filter Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!