How to send to matlab the final outcome of a simulink model?

1 Ansicht (letzte 30 Tage)
Nico0789 Mazzi
Nico0789 Mazzi am 7 Okt. 2013
Kommentiert: ES am 7 Okt. 2013
I would like to send to matlab the final results (ONLY the final results) of a simulation of a simulink model called in a matlab program, how can i do it?

Antworten (1)

ES
ES am 7 Okt. 2013
Do you mean values at outports? In that case you can use
sim
command. sim can simulate the model, log the output values in the variables you want. You can use the values in your script/function.
  2 Kommentare
Nico0789 Mazzi
Nico0789 Mazzi am 7 Okt. 2013
but how i can "log the output values in the variables i want"?
ES
ES am 7 Okt. 2013
Bearbeitet: ES am 7 Okt. 2013
[T,X,Y] =sim('model',options) where X and Y are variables that will log values from Outport1, Outport2.
Look here..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Event Functions finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by