How to plot error bars in simbio having standard deviations?
    3 views (last 30 days)
  
       Show older comments
    
Hi everyone!
I'm plotting data using SimBiology, but I'm having trouble plotting simple data with error bars. I don't have access to the raw data, but I do have the mean and standard deviation for each time point. My table is structured as follows:
ID | Time | Conc | SD
I want to plot these data on the Percentile plot, displaying the means with error bars based on their standard deviation. However, I haven't been able to achieve this simple task. Even after adding two columns with the maximum and minimum values by calculating [Conc+SD] and [Conc−SD], it seems that SimBiology requires values in the same column.
Basically I wish to do on Simbiology what the matlab errorbar function does (https://it.mathworks.com/help/matlab/ref/errorbar.html#d126e478849).
Please help!
0 Comments
Accepted Answer
  Priya Moorthy
    
 on 6 Feb 2025
        Hi, Elio,
Unfortunately, it is not possible to create a Percentile plot directly from mean and standard deviation data in the SimBiology Model Analyzer app. There are two workarounds I could suggest:
(1) Export the data to the command line and create the plot from there.
(2) Create a custom program in the Model Analyzer and provide your own code for a plot. Note, the plot will still be created outside of the app, but you can access the data saved in your project via the custom program. For example, if you have your data stored in your project as Data1, you would add something like the following line to the custom program code:
errorbar(dataInput.Data1.Conc, dataInput.Data1.SD);
Please reach out with any further questions.
Best,
Priya
0 Comments
More Answers (0)
Communities
More Answers in the SimBiology Community
See Also
Categories
				Find more on Extend Modeling Environment in Help Center and File Exchange
			
	Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
