simulink如何创建自己的模板
从模型创建Simulink®模板,以重用或共享模型的设置和内容,而无需每次复制模型。仅从没有外部文件依赖关系的模型创建模板,例如,模型引用、数据字典、脚本、S函数或其他文件依赖关系。如果要包括其他从属文件,请改用项目样板。请参见使用模板创建标准项目设置。
1.保存为模板
2
In the Export modelname to Model Template dialog box, edit the template title, select or create a group, and enter a description of the template.
The Simulink start page displays the title and description you specify and stores the template under the group you select, for example, My Templates.
在“将模型名称导出到模型模板”对话框中,编辑模板标题,选择或创建组,然后输入模板的说明。
Simulink起始页显示您指定的标题和说明,并将模板存储在您选择的组下,例如“我的模板”。
看了很多帮助文档,上边好像不是,只好借助csdn
在Simulink中创建自己的Library_远上寒杉的专栏-优快云博客
从这个学会了,主要是因为.m文件第三行的名字需要相同和library名字相同