是否可以在没有 运行 Matlab 脚本的情况下在 Simulink 中设置参数?
Is it possible to use to set a parameter in Simulink without running a Matlab script?
当 Simulink 模型包含参数时,可以使用脚本设置其值。
For instance, a constant block could have the value a
, and the script would then contain the expression a=2
to set its value.
是否可以在没有 运行 Matlab 脚本的情况下在 Simulink 模型中设置参数?
For instance, the Simulink model could containa drop-down menu that alows you to set the value of the parameter.
可能的解决方案包括
- 制作您自己的 GUI(参见 GUIDE)
- 使用masked subsystems
- 使用 Simulink Dashboard 模块
当 Simulink 模型包含参数时,可以使用脚本设置其值。
For instance, a constant block could have the value
a
, and the script would then contain the expressiona=2
to set its value.
是否可以在没有 运行 Matlab 脚本的情况下在 Simulink 模型中设置参数?
For instance, the Simulink model could containa drop-down menu that alows you to set the value of the parameter.
可能的解决方案包括
- 制作您自己的 GUI(参见 GUIDE)
- 使用masked subsystems
- 使用 Simulink Dashboard 模块