State space response analysis using Lsim for MIMO

조회 수: 7 (최근 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