フィルターのクリア

how can i solve part 2 ... should i convert the statespace to tf?

1 回表示 (過去 30 日間)
Mohammad Adeeb
Mohammad Adeeb 2018 年 3 月 13 日
コメント済み: Birdman 2018 年 3 月 13 日
close all;
clear all;
clc;
m1=1;
m2=3;
k1=10;
k2=2;
b=0.5;
A=[0 1 0 0;-(k1+k2)/m1 -b/m1 k2/m1 b/m1;0 0 0 1; k2/m2 b/m2 -k2/m2 -b/m2];
B=[0;0;0;1/m2];
C=[1 0 0 0;0 0 1 0];
D=[0;0];
sys_ss=ss(A,B,C,D);
step(sys_ss);
[num,den]=ss2tf(A,B,C,D);

採用された回答

Birdman
Birdman 2018 年 3 月 13 日
Actually you do not need to do that since they will eventually give the same result but since the question wants you to do it, write the following code:
Gs(1)=tf(num(1,:),den);
Gs(2)=tf(num(2,:),den)
step(Gs)
and you will see that you get identical results.
  4 件のコメント
Mohammad Adeeb
Mohammad Adeeb 2018 年 3 月 13 日
ok .. thanx it's work
Birdman
Birdman 2018 年 3 月 13 日
You are welcome.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by