Connecting simulink with m file

1 Ansicht (letzte 30 Tage)
rend alrays
rend alrays am 12 Nov. 2015
Kommentiert: Walter Roberson am 13 Nov. 2015
Hi .. I want to connect my simulink model with the m-file to put the m file in another program.. how would I do that?? any suggestion??
Regards

Antworten (1)

Walter Roberson
Walter Roberson am 13 Nov. 2015
You call sim() from MATLAB.
It is not clear what assistance you would like?
Also, when you say you want to put it into another program, are you referring to compiling the code?
  2 Kommentare
rend alrays
rend alrays am 13 Nov. 2015
I have a program which have a matlab componant ,I will use this simulink in this componant which I have to write some thing in the m-file to connect between these two programs .. Is that clear?? so I have to connect the simulink model with the m-file to connect all with my program
Walter Roberson
Walter Roberson am 13 Nov. 2015
call open_system() to load the model. call set_param() if you need to change parameters. Call sim() to run the model.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by