Step and Impulse responce

4 ビュー (過去 30 日間)
mehmet gürbüz
mehmet gürbüz 2020 年 5 月 14 日
回答済み: Star Strider 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 Center および File ExchangeClassical Control Design についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by