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

    %% Retrieve Metadata From vdp Simulation  
% Simulate the |vdp| model and retrieve metadata information from the simulation.   

%% 
% Simulate the |vdp| model. Save the results of the |Simulink.SimulationOutput|
% object in |simout| 
 open_system('vdp')
 simout = sim(bdroot,'ReturnWorkspaceOutputs','on');  

%% 
% Retrieve metadata information about this simulation using |mData|. 
 mData=simout.getSimulationMetadata()