Step and Impulse responce

2 次查看(过去 30 天)
mehmet gürbüz
mehmet gürbüz 2020-5-14
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)

回答(1 个)

Star Strider
Star Strider 2020-5-14
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)
.

类别

Help CenterFile Exchange 中查找有关 Classical Control Design 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by