What is "Input" in "model" command?

2 visualizzazioni (ultimi 30 giorni)
Jianfei
Jianfei il 20 Lug 2020
Risposto: rubindan il 20 Lug 2020
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!

Risposte (1)

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

Categorie

Scopri di più su Programmatic Model Editing in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by