connecting simulink with matlab

2 Ansichten (letzte 30 Tage)
ahmed abdelmgeed
ahmed abdelmgeed am 27 Jan. 2020
Kommentiert: ahmed abdelmgeed am 27 Jan. 2020
Hello
I want to know how to run a simulink model in the middle of my code in the matlab, so if I have a matlab code and in the middle of the code I want to write a command that runs the simulink model and then continue with the normal code.
assume the simulink model name is "mymodel"

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 27 Jan. 2020
results=sim('mymodel')
  8 Kommentare
Fangjun Jiang
Fangjun Jiang am 27 Jan. 2020
You need to learn some basics of Simulink. It's a simulation program. Those 51values correspond to the 51 time instances of the simulation. At time=0s, the value is 10. At time=0.2s, the value is 10, ..., etc.
ahmed abdelmgeed
ahmed abdelmgeed am 27 Jan. 2020
and how do I manage that ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programmatic Model Editing 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