www.gusucode.com > simulink 案例源码程序 matlab代码 > simulink/ConstructaScopeConfigObjectExample.m

    %% Example: Construct a Scope Configuration Object  

%% 
% Create a new Simulink(R) model. 
mdl='scopemdl';
new_system(mdl);  

%% 
% Add a new Scope block to the model. 
add_block('simulink/Sinks/Scope',[mdl '/myScope']);  

%% 
% Call the |get_param| function to retrieve the default Scope block properties. 
htsc = get_param([mdl '/myScope'],'ScopeConfiguration')