State space response analysis using Lsim for MIMO
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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,
1 Kommentar
Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!