如何使用matlab函数为simulink设置全局变量
22 次查看(过去 30 天)
显示 更早的评论
我想在 matlab 功能块中使用全局变量。但是我在链接站点下面的内容中找不到“符号窗格”来将全局变量设置为 Simulink.Signal 对象。你能告诉我它在哪里吗?
- 确保Simulink.Signal对象已注册到MATLAB Function模块。
- 在建模选项卡的设计部分中,单击符号窗格。
- 在符号窗格中,选择数据A 。此数据使用与全局变量相同的名称。右键单击并选择Inspect...打开 Property Inspector。
- 在 Property Inspector 中,将数据的Scope设置为Data Store Memory 。
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!