- 或者点击类似 “Show/Hide Symbols Pane” 的图标(Geometry Dash 一个带表格的小方块图标)。
- 打开后,编辑器左侧(或右侧)会出现一个面板,列出:
- Inputs
- Outputs
- Parameters
- Data
- Globals
如何使用matlab函数为simulink设置全局变量
42 views (last 30 days)
Show older comments
我想在 matlab 功能块中使用全局变量。但是我在链接站点下面的内容中找不到“符号窗格”来将全局变量设置为 Simulink.Signal 对象。你能告诉我它在哪里吗?
- 确保Simulink.Signal对象已注册到MATLAB Function模块。
- 在建模选项卡的设计部分中,单击符号窗格。
- 在符号窗格中,选择数据A 。此数据使用与全局变量相同的名称。右键单击并选择Inspect...打开 Property Inspector。
- 在 Property Inspector 中,将数据的Scope设置为Data Store Memory 。
1 Comment
Terry
on 14 Oct 2025 at 3:28
你遇到的问题非常常见——很多用户在较新的 Simulink 版本(R2022b 及以后)中找不到文档中提到的“符号窗格 (Symbols Pane)”。这是因为 MATLAB Function 模块界面在新版本中更新了,符号窗格被集成到 “编辑器 (Editor)” 的右侧工具区中,或者默认隐藏了。
View > Symbols
Answers (0)
See Also
Categories
Find more on Assumptions 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!