simbiology question- how to overlay observed data with simulation

2 views (last 30 days)
Hello Matlab Community,
I have a question on how to overlay observed data with the model simulation that I've created. Any help on what part of the interface to do this, where in the instruction manual, or that code would be greatly appreciated.
Thanks in advance for the help

Accepted Answer

Priya Moorthy
Priya Moorthy on 2 Nov 2018
Edited: Priya Moorthy on 2 Nov 2018
Brett,
In the current version of the SimBiology Desktop, experimental and simulation data cannot be viewed together in the plots generated after a running a simulation, but they can be viewed together in the Live Plots. Assuming you have already created a model and simulation task, and have also imported your experimental data into the SimBiology desktop:
1) With your simulation task open, click on the "Live Plots" button in the "Editor" tab of the toolstrip.
2) Switch to the "Explorer" toolstrip tab and click on "Edit Properties" to bring up a window for configuring your live plot.
3) At the top of the "Data to Plot" tab of the "Properties" pop-up window, there is a drop down menu that allows you to choose between State, External and Math data. Choose "Plot External Data" and click "Add". A new row for your experimental data will appear in the table of plotted variables.
4) Select this row and configure the X column name, Y column name, etc.
5) You can repeat this for any number of states, external data columns or also arbitrary math lines.
A more general explanation can be found in the documentation here: https://www.mathworks.com/help/simbio/ug/running-tasks.html#bvczdcu
Best,
Priya

More Answers (0)

Communities

More Answers in the  SimBiology Community

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!