How does lsim evaluate mimo

조회 수: 11 (최근 30일)
Sandeep
Sandeep 2015년 7월 30일
댓글: Azzi Abdelmalek 2015년 7월 30일
I have a multi-input-multi-output statespace model. I want to use lsim(sys,u,t) command to give u as an input.
  • If Zgf is my first input of statespace and
  • Zgz is the second input of statespace then
u(:,1)= Zgf;
u(:,2)=Zgr;
y=lsim(sys,u,t);
is the way to give input to the statespace using lsim? or the other way around?
Thanks!
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2015년 7월 30일
Have you tested your code? did you get any problem?

댓글을 달려면 로그인하십시오.

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 7월 30일
Directly from the lsim documentation page:
If sys has three inputs, then u is a t-by-3 array. Each row u(i,:) specifies the input value(s) at the time sample t(i).
So, it is the right way based on your question. Of course, you could also try it to verify :)
- Sebastian

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Time and Frequency Domain Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by