www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/SpecifyTemporaryLoopOpeningforLoopTransferFunctionCalculExample.m
%% Specify Temporary Loop Opening for Loop Transfer Function Calculation % Obtain the loop transfer function for the inner loop, calculated at |e2|, % for the |scdcascade| model. %% % Open the |scdcascade| model. mdl = 'scdcascade'; open_system(mdl); %% % Create an |slLinearizer| interface for the model. sllin = slLinearizer(mdl); %% % To calculate the loop transfer function for the inner loop, use the |e2| % signal as the analysis point. To eliminate the effects of the outer loop, % break the outer loop at |y1m|. Add these points to |sllin|. addPoint(sllin,{'e2','y1m'}); %% % Obtain the inner-loop loop transfer function at |e2|. sys = getLoopTransfer(sllin,'e2','y1m'); %% % Here, |'y1m'|, the third input argument, specifies a temporary loop opening. % The software assumes positive-feedback when it calculates |sys|.