Model command with vector / matrix inputs

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!

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2022년 3월 3일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Modeling에 대해 자세히 알아보기

제품

릴리스

R2021a

태그

질문:

2022년 3월 3일

답변:

2022년 3월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by