%% Get Model States

modelname = 'sdoAircraft';
load_system(modelname);
s = sdo.getStateFromModel(modelname);

% s is a vector containing nine param.State objects, which represent all the states of the sdoAircraft model.
% Copyright 2015 The MathWorks, Inc.