Exporting simulations to MATLAB workspace


Simulations and model results do not get exported to the MATLAB workspace automatically. 2021b. Under Model Analyzer preferences, I checked "export results when model run is complete", but to no effect. I have to manually expert simulations after each run. Please advise. Thanks RD

Jeremy Huard
Jeremy Huard on 27 Apr 2022
Dear Rutwij,
I cannot reproduce this behaviour. I tried in 21b Update 3 and program results are exported in a struct variable names output as expected.
For a simulation program, output will contain a field results, which will be a SimData object.
Can you please let us know which exact version you use? Type
ver('MATLAB')
in the Command Window.
Best,
Jérémy

Tags

No tags entered yet.