?? find_line_dst.m
字號(hào):
function dst = find_line_dst(line)
% Find destination points of a line in Simulink
%
% Syntax:
% "dst = find_line_dst(line)"
%
% Description:
% "find_line_dst(line)" returns a structure array containing the
% destination points of "line". Tne information is returned in a
% structure array with one element for each destination, and two fields
% in each element. ".block" contains the handle of the destination
% block and ".port" which is a string specifying the destination port.
%
% See Also:
% find_dst_port
dst = {};
if isempty(line.Branch)
if (line.DstBlock ~= -1)
dst{1}.block = line.DstBlock;
dst{1}.port = line.DstPort;
end
else
for k = 1:length(line.Branch)
dstk = find_line_dst(line.Branch(k));
for l = 1:length(dstk)
dst{length(dst)+1} = dstk{l};
end
end
end
return
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -