Why is the data saved in a struct when 'To Workspace' block is used?

1 view (last 30 days)
From a few days ago, every time I use to workspace block in a model the data is saved in a struct called ans (if the model is runned from the matlab) or in a struct called out (if the model is runned from the simulink). Do you know why? And can this be solved?

Accepted Answer

stozaki
stozaki on 28 Feb 2020
Edited: stozaki on 28 Feb 2020
"ans" is most recent answer.
"out" is simulation output (default setting of model configuration)

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!