State space response analysis using Lsim for MIMO

9 ビュー (過去 30 日間)
Maira
Maira 2012 年 12 月 4 日
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 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2012 年 12 月 4 日
Give the value of A, B, C and D, Or at least their sizes

サインインしてコメントする。

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by