How can I do a transfer function for a MIMO system?

10 次查看(过去 30 天)
A=[-1 0 0 ; 1 -a 0 ; 0 1 0] B=[1 0 ; 0 a ; 0 0] C=[0 1 0 ; 0 0 1] D=zeros(2,2) there are matrixs. I need for the code for the transfer function.

采纳的回答

Nihar Deodhar
Nihar Deodhar 2016-6-28
Just to clarify, the transfer function for a MIMO system will actually be a matrix of transfer functions. Lets say you have MIMO system with two inputs u1, u2 and two outputs y1, y2 then you will have total four transfer functions as follows:
Y1(s)/U1(s), Y1(s)/U2(s), Y2(S)/U1(s) and Y2(s)/U2(s).
The code in your case would be as follows:
% firstoff you would have to define 'a' for now I will just assume a value for it as I am unaware what 'a' is.
a = 1;
A=[-1 0 0 ; 1 -a 0 ; 0 1 0];
B=[1 0 ; 0 a ; 0 0];
C=[0 1 0 ; 0 0 1];
D=zeros(2,2);
[num1 den1] = ss2tf(A,B,C,D,1); % iu = 1
[num2 den2] = ss2tf(A,B,C,D,2); % iu = 2
sys = ss(A,B,C,D);
tf(sys)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Linear Model Identification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by