State space response analysis using Lsim for MIMO

9 visualizzazioni (ultimi 30 giorni)
Maira
Maira il 4 Dic 2012
Hello to all,
I need to make a simulation for a MIMO system in the state space form but i am having a hard time to create the inpout vector. I have 4 states and when I use the lsim(A,B,C,D,u,t) i keep having erros wiht the u matriz. I don`t know how to create this u matriz, indorder to have 2 inputs (one sen, 0, one cos, 0). I also cannot find any example, every where it says its the same. A is 4x4.
t=0:0.2:10;
printsys(A,B,C,D);
u=[sin(t) zeros(size(t),1) cos(t) zeros(size(t),1)];
z=lim(A,B,C,D,u, t,0);
print(t,z); Can you help me? thanks,

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by