Change variable Name of "To Workspace"

19 Ansichten (letzte 30 Tage)
Stephan Karelly
Stephan Karelly am 19 Jun. 2020
Kommentiert: Muhammad Ahmad am 14 Mär. 2024
Hello there, so i'm doing my first ever Simulink Project and im having multiple Systems in one file.
Since im giving multible variables back to Mathlab i tried to change the variable names of "To Workspace" , but that works only partially. There is the prefix "out." that i cannot change. So it's out.variable1. Which leads to Matlab saving all outputs into the same Variable "out" and making it unsusable for me.
I'm sure there is a way to solve that but i can't find it.

Akzeptierte Antwort

Sara Nadeau
Sara Nadeau am 19 Jun. 2020
I believe you may be seeing the effect of some model configuration parameters at work. In the model configuration parameters, check to see whether Single simulation output is checked.
If you do not want all your data returned in one variable, you can clear this option. If you're ok with the single simulation output, you can also change the name used for the default variable in the model configuration parameters.
  2 Kommentare
Stephan Karelly
Stephan Karelly am 20 Jun. 2020
You are the best. Thank you so much. No way i would have ever found that.
Muhammad Ahmad
Muhammad Ahmad am 14 Mär. 2024
Thanks man

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by