Step and Impulse responce

6 visualizaciones (últimos 30 días)
mehmet gürbüz
mehmet gürbüz el 14 de Mayo de 2020
Respondida: Star Strider el 14 de Mayo de 2020
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)

Respuestas (1)

Star Strider
Star Strider el 14 de Mayo de 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)
.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by