Change variable value in the workspace using switch

Respuestas (2)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 27 de Abr. de 2025
Movida: Image Analyst el 27 de Abr. de 2025
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.

3 comentarios

Ari
Ari el 28 de Abr. de 2025
The goal here is how to select variant subsystem/model using Rotary Switch
Ari
Ari el 28 de Abr. de 2025
Also, if we assign a variable name to a Constant block, then a Switch can't connect to it
Ari
Ari el 28 de Abr. de 2025
If we use this approach, changing Switch position doesn't immediately change out.simout value

Iniciar sesión para comentar.

Walter Roberson
Walter Roberson el 27 de Abr. de 2025
Send the output of the Switch block into a To Workspace block.

Categorías

Más información sobre Modeling en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Ari
el 27 de Abr. de 2025

Comentada:

Ari
el 28 de Abr. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by