交互式模型编辑
创建、格式化、导航和搜索 Simulink 模型
了解如何在 Simulink® 编辑环境中构建和编辑模型。发现您可以在 Simulink 中使用的方法、提示和快捷方式。
有关 Simulink 的介绍,请尝试自定进度的交互式 Simulink 入门之旅课程和 Simulink 快速入门。
有关如何运行模型和查看结果的信息,请参阅仿真。有关如何共享、重用、标准化、打印和保护模型保密性内容的信息,请参阅协作模型编辑。
您还可以通过编程方式创建、编辑和测试模型。要了解详细信息,请参阅编程式模型编辑。
工具
Simulink 在线课程 | Self-paced, interactive courses for Simulink product family |
Simulink 预设项 | Settings for Simulink Editor and model files |
库浏览器 | 查找并向模型添加模块 |
属性检查器 | 编辑任何 Simulink 模型元素的参数和属性 |
模型数据编辑器 | Inspect and edit data items (signals, parameters, and states) in a table that you can sort, group, and filter |
模型资源管理器 | View, modify, and add elements of Simulink models, Stateflow charts, and workspace variables |
模型查找器 | Search, filter, and browse examples, models, and projects |
查找器 | 在 Simulink 模型、库和子系统中查找并有选择地替换值 |
主题
键盘快捷方式
- Simulink 建模的键盘快捷方式和鼠标操作
使用键盘和鼠标操作与 Simulink 编辑器交互。
创建模型
- 打开模型
创建新的 Simulink 模型并打开现有模型。 - 保存模型
保存 Simulink 模型。 - 向模型添加模块
使用库浏览器和快速插入菜单插入模块。 - 连接模块
使用信号线和绑定模式连接模块。 - Edit Block Parameters
Set block parameter values using the Block Parameters dialog box and Property Inspector.
格式化模型
- 配置模型布局
更改模块的排列、方向和大小。 - 将模块组合为子系统
使用子系统组织大型模型。 - 将信号或消息组合到虚拟总线中
创建总线以减少模块图中的信号线数量。 - 配置模型元素名称和标签
隐藏和显示模块名称、标记信号线、更改文本字体和颜色。 - 为模型添加注解
使用文本、超链接、方程式、图像和表格来标记模型的各个部分。 - Configure Model Style Elements
Change model fonts and colors. - Customize Block Icons
Use Masks to give blocks custom covers. - Visually Organize Models Using Area Annotations
Use areas and images to visually compartmentalize the model.
导航模型
- Navigate Model Hierarchy
Navigate model hierarchy using the Explorer Bar and Model Browser. - 将您在模型中的位置标记为书签
使用视图标签保存和返回到复杂模型中的视图。
搜索模型、模型内容和 Simulink 编辑器操作
- Index and Search Models with Model Finder
Index, search, and browse examples, models, and projects in multiple databases. - Search Model Contents
Search for model contents such as blocks, signal lines, or parameters. - Keyword Search for Simulink Editor Actions
Use Action Search to open dialog boxes and get keyboard shortcuts for modeling actions.