当 Simulink 模型包含参数时,可以使用脚本设置其值。
For instance, a constant block could have the value
a
, and the script would then contain the expressiona=2
to set its value.
是否可以在 Simulink 模型内设置参数,而无需运行 Matlab 脚本?
For instance, the Simulink model could containa drop-down menu that alows you to set the value of the parameter.
最佳答案
可能的解决方案包括
- 制作您自己的 GUI(请参阅指南)
- 使用 masked subsystems
- 使用 Simulink Dashboard 模块
关于matlab - 是否可以在不运行 Matlab 脚本的情况下在 Simulink 中设置参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34037958/