www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/AddOpeningUsingBlockPathAndPortNumberExample.m
%% Add Opening Using Block Path and Port Number % Suppose you want to analyze only the inner-loop dynamics of the |scdcascade| % model. Add the outer-loop feedback signal, |y1m|, as a permanent % opening of an |slLinearizer| interface. % Copyright 2015 The MathWorks, Inc. %% % Open the |scdcascade| model. mdl = 'scdcascade'; open_system(mdl); %% % Create an |slLinearizer| interface for the model. sllin = slLinearizer(mdl); %% % Add the |y1m| signal as a permanent opening of |sllin|. addOpening(sllin,'scdcascade/Sum',1); %% % The |y1m| signal originates at the first (and only) port of the % |scdcascade/Sum| block.