Borrar filtros
Borrar filtros

Model command with vector / matrix inputs

2 visualizaciones (últimos 30 días)
Cedric Kotitschke
Cedric Kotitschke el 3 de Mzo. de 2022
Respondida: Fangjun Jiang el 3 de Mzo. de 2022
Hey,
I would like to use the model command to execute my simulink model. The problem is that my inputs are scalars, vectors and matrices. But according to the reference, the input u should be a vector of doubles containing all the inputs. But I can't put scalars, vectors and matrices in one vector. How do I work around this? Is this even possible?
Thanks!

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 3 de Mzo. de 2022
Certainly the needed input vector can be constructed based on whatever data you have. But consider using the sim() command. It makes providing the input easier.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by