如何修改MATLAB_Simulink中已有的模块
如何修改MATLAB-Simulink中已经有的模块MATLAB-Simulink中有很多模块,用起来很方便,当高级用户想要达到特殊目的时,需要修改这些模块。下面介绍如何修改已经有的模块。以“Simulink Library Browser ->Aerospace Blockset->Equations os Motion->6DoF”中“6DoF(Euler Angles)”模块为例,对该模块进行修改。
(1)首先单击鼠标选中需要修改的模块“6DoF(Euler Angles)”,然后点击“Ctrl+L”。画面如下图所示:
(2)右击变色的模块,选择“Open in New Tab”,现在尝试对其进行修改,会示:Attempt to modify a locked library. The action performed requires you to? HYPERLINK "matlab:SLM3I.SLDomain.unlockLibrary;" unlock this library.点击蓝色的“? HYPERLINK "matlab:SLM3I.SLDomain.unlockLibrary;" unlock this library”。对此模块进行解锁。
(3)现在根据自己的需要对模块进行修改,修改完成之后保存退出,关闭修改好的模块。(4)如???需要修改的模块里面还有要修改的模块,同样,选中要修改的模块按“Ctrl+L”,右击变色的模块,选择“Open in New Tab”,现在尝试对其进行修改,会示:Attempt to modify a locked library. The action performed requires you to? HYPERLINK "matlab:SLM3I.SLDomain.unlockLibrary;" unlock this library.点击蓝色的“? HYPERLINK "matlab:SLM3I.SLDomain.unlockLibrary;" unlock this library”。对此模块进行解锁,进行修改后保存退出。(5)此时再回到自己搭建的框图页面,打开模块“6DoF(Euler Angles)”查看。
发现已经修改了,如果不满意再从头重复该过程修改。
南航 张兆龙 于流体楼(C12)2014/12/2