Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 simulink 子系统中,我想用父系统中的相应和一个-block 替换所有From-blocks 。是否有一个 MATLAB 函数可以返回子系统的父系统,或者是一种方便的方法来实现这一点而无需调整路径字符串?In-/OutportsFrom
From
In-/Outports
对于任何模块(包括子系统),您可以询问参数Parent的值,
>> get_param('model/ParentSystem/ChildSystem', 'Parent'); ans = 'model/ParentSystem' >>