bdroot.m
来自「经典通信系统仿真书籍《通信系统与 MATLAB (Proakis)》源代码」· M 代码 · 共 21 行
M
21 行
function root_sys = bdroot(sys)
%BDROOT Return the root level block diagram.
% BDROOT(sys), where sys is the name of a SIMULINK
% model or block, returns the root level block diagram.
% If BDROOT is called with no arguments or if sys is
% empty, BDROOT returns the root level block diagram
% of the current SIMULINK model.
% Copyright (c) 1990-94 by The MathWorks, Inc.
% Rick Spada 3-8-93
if nargin==0,
sys=get_param;
end
while ~isempty(get_param(sys,'Parent')),
sys=get_param(sys,'Parent');
end;
root_sys=sys;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?