Issue in To workspace block in 2019b

7 views (last 30 days)
Moreshwar Inamdar
Moreshwar Inamdar on 5 Dec 2019
Answered: divakar kuruna on 30 Sep 2021
I have a simulink model which uses to workspace block. The to workspace block is set to a 'array' that outputs variable in to my matlab workspace window. When I run the model, it runs and output on matlab workspace occure as out which gives 1*1 simulationout structure and there is my variable and I am unable to getting this variable but with lower version of matlab I were directly getting array variable how should I solve this problem?

Answers (2)

Fangjun Jiang
Fangjun Jiang on 5 Dec 2019
Drag a "To Workspace" block from the library, if you only change the fomat from "Timeseries" to "array", then the variable in the workspace is out.simout
  7 Comments
Fangjun Jiang
Fangjun Jiang on 24 Sep 2020
assign a return variable, Result=sim('model.slx');
divakar kuruna
divakar kuruna on 30 Sep 2021
hii i also faced this issue but the solution is
modeling>>model settings>>disable single simulation output

Sign in to comment.


divakar kuruna
divakar kuruna on 30 Sep 2021
hii i also faced this issue but the solution is
modeling>>model settings>>disable single simulation output

Categories

Find more on Interactive Model Editing in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!