Filter löschen
Filter löschen

Simulink load & save array during execution

3 Ansichten (letzte 30 Tage)
Sara Hamdan
Sara Hamdan am 25 Apr. 2018
Kommentiert: David Pasdeloup am 2 Aug. 2018
In Simulink - Matlab function, how can I read values from an array then edit the values and save them again in the same array (override), during the execution of the Simulink? (update the array every time step)
  1 Kommentar
David Pasdeloup
David Pasdeloup am 2 Aug. 2018
I had the same issue. My solution was to:
- Stop the simulation
- Save the state of the Simulink model with the SimState functionality
- Rewrite the array
- Continue the simulation from the SimState saved before.
The SimState functionality acts as if the simulation never stopped, but it appeared to me that simulation must be stopped to change the array.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulink 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