How does lsim evaluate mimo

9 visualizaciones (últimos 30 días)
Sandeep
Sandeep el 30 de Jul. de 2015
Comentada: Azzi Abdelmalek el 30 de Jul. de 2015
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 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 30 de Jul. de 2015
Have you tested your code? did you get any problem?

Iniciar sesión para comentar.

Respuesta aceptada

Sebastian Castro
Sebastian Castro el 30 de Jul. de 2015
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

Más respuestas (0)

Categorías

Más información sobre Time and Frequency Domain Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by