www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/GetParameterizationOfAllTunedBlocksExample.m

    %% Get Parameterizations of All Tuned Blocks 
%%
% Create an |slTuner| interface for the |scdcascade| model.     
open_system('scdcascade');
st = slTuner('scdcascade',{'C1','C2'});

%%
% Retrieve the parameterizations for both tuned blocks in |st|.
blockParams = getBlockParam(st)

%%
% |blockParams| is a structure with field names corresponding to the names
% of the tunable blocks in |st|. The field values of |blockParams| are 
% |tunablePID| models, because |C1| and |C2| are both PID Controller blocks.