www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/RevertParameterizationOfTunedBlockToDefaultExample.m
%% Revert Parameterization of Tuned Block to Default %% % Create an |slTuner| interface for the |scdcascade| model. open_system('scdcascade'); st = slTuner('scdcascade',{'C1','C2'}); %% % Modify the parameterization of |C2| to be a tunable gain and % examine the result. G = tunableGain('C2',5); setBlockParam(st,'C2',G); getBlockParam(st,'C2') %% % Revert the parameterization of |C2| back to the default PI controller % and examine the result. setBlockParam(st,'C2'); getBlockParam(st,'C2')