Step and Impulse responce
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello everyone ;
I m learning control systems in matlab but ı need help you
syms s
>> Gs=(1000)/(s^2+34.5*s+1000);
>> Rs=1/s;
>> Cs=Gs*Rs
Cs =
1000/(s*(s^2 + (69*s)/2 + 1000))
>> Ct=ilaplace(Cs)
Ct =
1 - exp(-(69*t)/4)*(cos((11239^(1/2)*t)/4) + (69*11239^(1/2)*sin((11239^(1/2)*t)/4))/11239)
>> % 1) I WANT PLOT C(t) FOR A UNIT STEP
>> % 2) AND UNIT IMPULSE RESPONCE OF G(s)
0 Commenti
Risposte (1)
Star Strider
il 14 Mag 2020
If you want to use the Symbolic Math Toolbox:
syms s
Gs=(1000)/(s^2+34.5*s+1000);
Rs=1/s;
Cs=Gs*Rs
Ct=ilaplace(Cs)
figure
fplot(Ct, [0 0.35])
hold on
plot([0 0.35], [1 1], ':k')
hold off
title('Step Response')
figure
fplot(ilaplace(Gs), [0 0.35])
hold on
% plot([0 0.35], [1 1], ':k')
hold off
title('Impulse Response')
To use the Control System Toolbox functions:
s = tf('s');
Gs=(1000)/(s^2+34.5*s+1000);
Rs=1/s;
Cs=Gs*Rs
figure
step(Gs)
figure
bode(Gs)
.
0 Commenti
Vedere anche
Categorie
Scopri di più su Classical Control Design in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!