Since I do not know whether you are using the SimBiology Desktop, let me explain the Desktop and Command Line approach (assuming you are using a relatively new version of MATLAB). The SimBiology Desktop approach:
- Click on Simulation Settings
- Specify the output times
- Click on Task Results => More => Export Data
- If you select export data as separate variables ensure that Time and States are ticked
- Select the row of x which represents the time point you are interested inThese are the data you are looking for.
In case you are using the programmatic approach you can the same data as follows:
configsetObj = getconfigset(m1);
set(configsetObj.SolverOptions, 'OutputTimes', [1:10])
[time,x,names] = sbiosimulate(m1,configsetObj)
Like in the SimBiology Desktop approach you can now select the row of x you are interested. I hope this helps. Let me know if you have further questions.