您的位置:首页 > 健康 > 美食 > seo优化实训总结_南宁自助模板建站_百度人工客服电话24小时_关键词优化策略有哪些

seo优化实训总结_南宁自助模板建站_百度人工客服电话24小时_关键词优化策略有哪些

2025/3/18 20:16:48 来源:https://blog.csdn.net/BlueBachke/article/details/146231068  浏览:    关键词:seo优化实训总结_南宁自助模板建站_百度人工客服电话24小时_关键词优化策略有哪些
seo优化实训总结_南宁自助模板建站_百度人工客服电话24小时_关键词优化策略有哪些

1.快捷键

全选

Ctrl+A

Open the Library Browser Ctrl+Shift+L  打开模块库

仿真,更新,生成代码快捷键

Debug Simulations

2.回调函数  callback

有时候模型内的变量,是从.m文件导入或是工作区间导入,可以使用模块的回调函数

假设有如下两个参数,K需要直接在回调函数中初始化,B需要在.m文件中初始化

点击模型的空白处,点击模型属性,点击PostloadFcn选项卡,把参数和.m文件填在此处,该选项卡代表模型打开之后运行这里的回调函数,对应的还有打开前,初始化,保存等回调函数

新建一个.m脚本

从新打开模型,并运行,可以发现,参数已经自动导入了

3.回退至前版本

当你将模型导出到旧版本时,无论如何保存的模型都会采用旧版本格式(即便该模型包含后续版本引入的模块和功能)。若模型中存在旧版后开发的功能模块,或使用了新版本特性,则该模型在旧版 Simulink 中运行时可能出现结果异常。此时,Simulink 会将新版添加的模块自动转化为黄色、空白的已屏蔽子系统模块,并在模块角标显示警告三角形

4.信号连接

Press Ctrl and right-click the block whose input ports you want to connect.

左边3个信号全选,按Ctrl再用鼠标点击子系统即可一次性连接所有信号

To connect both the input port and output port of a block to an existing signal line, click and drag the block onto the signal line. Position the block such that the port symbols are on the signal line. When the output port symbol disappears and the input port symbol turns into a solid arrowhead, release your pointer

将模块直接拖进信号线中间,松开即可直接插入进去

To make a signal line segment diagonal, press Shift and drag a vertex that connects to another signal line segment.

点击信号线,按住Shift,当鼠标成为圆圈时拖动可改变信号线的形状

To connect an output port to multiple input ports, connect one input port to the output port, then branch the signal line to connect to the other input ports. To branch the signal line, press Ctrl, then click and drag the existing signal line to the input port of the block to which you want to connect.

当两个模块已经连接了,此时需要在信号线中引出一条线连接第3个模块,按住Ctrl不动,直接引线连接

5.goto from模块

For example, the Goto and From blocks are related blocks that you can use to send a signal without a signal line. The signal that enters the Goto block exits the From block without passing through a signal line.

Some related blocks connect using tags. For example, all Goto and From blocks with the same tag are connected.

6.模块大小一致

经常在建模时,为了让输入输出信号大小对齐,有时手动拖动一些模块,导致模块的大小不一致,需要用到大小一致功能

如图,三个大小不一致,按住Shift不动,依次点信号3,2,1最后点1是以1为参照物,把2,3变成和1一样的大小

点击Match Size

7.增加区域

To change the label text of an area, select the area, click the ? in the upper left corner, and type the new label text

To change to color of an area, in the Simulink Toolstrip, on the Format tab, in the Style section, click Foreground. You can select a color from the menu or click Custom Color to define your own color.

增加注释:

Double-click the canvas where you want the annotation. The quick insert menu opens. The default option in the quick insert menu is Create Annotation

配合区域使用注释,线条通过注释直接拉到区域框,可以起补充说明的作用

8.创建视图标记

当一个模块比较大的时候可以创建视图标记来方便查找具体想要查看的子系统

①视图标记创建

例如在如下模型:

点击下图中的照相机图标

进入到子系统内,也电机照相机按钮

点击图库按钮

可以看到刚刚的已经被创建的两个视图标记

②给视图标记命名

在图库内给视图标记命名,这样比如打开一个比较大的子系统,以这个子系统的功能进行命名,将会快速的打开想要查找的功能逻辑

③添加描述或删除该视图

④保存视图标记

先点Manage

勾选想要保存的视图,并点击右上角保存

会发现在该Model下新增了我们保存的视图,在下一次打开该模型时,该视图将会一直存在

9.查找功能

You can use the Finder to perform a keyword search for model elements and parameters. To open the Finder, select the Simulink Editor and press Ctrl+F. In the search box, type a keyword or key phrase, then press Enter. The keyword or key phrase can be any in this table.

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com