필터 지우기
필터 지우기

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 CenterFile Exchange에서 Conversion Between Symbolic and Numeric에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by