필터 지우기
필터 지우기

How to obtain statespace having two inputs from transfer function in matlab mfile

조회 수: 2 (최근 30일)
I am having a transfer function having two zeros and four poles.
G(s)= (as^2+bs+c)/(s^4+ds^3+es^2 )
I need to convert TF to statespace such that it has two inputs i.e. matrix B has two columns.I know the commands tf2ss but it gives me statespace with one input.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 5일
Use tf2ss to find A,B,C,D , change B to add any inputs you want, then rebuilt a newmodel with ss function
a=1;b=2;c=1;
d=1;e=1;
N=[a b c];
D=[1 d e 0 0];
[A,B,C,D]=tf2ss(N,D)
B=[B [1;0;0;0]]
new_model=ss(A,B,C,D)

추가 답변 (1개)

Teja Muppirala
Teja Muppirala 2012년 12월 5일
How about:
s = tf('s');
G= (s^2+s+1)/(s^4+s^3+s^2 );
Gss = ss([G G]);
Although I don't quite see the point in having two inputs to the same system (you could just add them together and get the same response).

카테고리

Help CenterFile Exchange에서 Power and Energy Systems에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by