MATLAB Answers

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

1 view (last 30 days)
Ander Erroicenea
Ander Erroicenea on 28 Feb 2020
Edited: stozaki on 28 Feb 2020
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?

  0 Comments

Sign in to comment.

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)

  0 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!