Change variable value in the workspace using switch
Show older comments
How to change a variable value in the workspace using simulink's Toggle/Rotary Switch block?
Answers (2)
Sulaymon Eshkabilov
on 27 Apr 2025
Moved: Image Analyst
on 27 Apr 2025
0 votes
Why not to assign a variable name to a constant block, then initialize the value of the constant block from the command window or MATLAB script.
Walter Roberson
on 27 Apr 2025
0 votes
Send the output of the Switch block into a To Workspace block.
Categories
Find more on Modeling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


