How does lsim evaluate mimo
10 次查看(过去 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!
采纳的回答
Sebastian Castro
2015-7-30
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File 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!