What is "Input" in "model" command?

조회 수: 2 (최근 30일)
Jianfei
Jianfei 2020년 7월 20일
답변: rubindan 2020년 7월 20일
In the model command, in you want to get the output of a model, the code is:
outputs = model(t,x,u,'outputs');
In which "u" means "Inputs, specified as real double in vector format." What is this? Is there any examples of how to use this command? Thank you!

답변 (1개)

rubindan
rubindan 2020년 7월 20일
If your Simulink model have input ports (In1 In2,...), you can set them using the "u" argument.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by