www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/SetValueOfMultipleTunedBlockParameterizationsExample.m
%% Set Value of Multiple Tuned Block Parameterizations %% % Create an |slTuner| interface. % Copyright 2015 The MathWorks, Inc. open_system('scdcascade'); st = slTuner('scdcascade',{'C1','C2'}); %% % Create a block value structure with field names that correspond to the % tunable blocks in |st|. blockValues = getBlockValue(st); blockValues.C1 = pid(0.2,0.1); blockValues.C2 = pid(2.3); %% % Set the values of the parameterizations of the tunable blocks in |st| % using the defined structure. setBlockValue(st,blockValues);