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対応する -blockIn-/Outportsに置き換えたいと考えています。Fromサブシステムの親システムを返す MATLAB 関数はありますか、またはパス文字列を微調整せずにこれを実現する便利な方法はありますか?
From
In-/Outports
任意のブロック (サブシステムを含む) について、パラメーターParentの値を求めることができます。
>> get_param('model/ParentSystem/ChildSystem', 'Parent'); ans = 'model/ParentSystem' >>