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

    %% Extract Operating Points at Simulation Snapshots
%%
% Open the Simulink model.
sys = 'magball';
open_system(sys)

%%
% Simulate the model, and extract operating points at |10| and |20| time
% units.
op = findop(sys,[10,20]);

%%
% |op| is a column vector of operating points, with one element for each
% snapshot time.
%%
% Display the first operating point.
op(1)