Effacer les filtres
Effacer les filtres

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

10 vues (au cours des 30 derniers jours)
Simona Santaniello
Simona Santaniello le 22 Juin 2016
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.

Réponse acceptée

Nihar Deodhar
Nihar Deodhar le 28 Juin 2016
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)

Plus de réponses (0)

Catégories

En savoir plus sur Linear Model Identification dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by