📄 get_root_system.m
字号:
function sys = get_root_system(sys)
% Get the root level system for a given subsystem
%
% Syntax:
% "root = get_root_system(sys)"
%
% Description:
% "get_root_system(sys)" returns the root level system (system with no
% parents in the hierarchy) containing the subsystem "sys".
parent = get_param(sys,'Parent');
while ~isempty(parent)
sys = parent;
parent = get_param(sys,'Parent');
end
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -