State space response analysis using Lsim for MIMO
9 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!