How to plot error bars in simbio having standard deviations?

조회 수: 4 (최근 30일)
Elio
Elio 2025년 2월 6일
답변: Priya Moorthy 2025년 2월 6일
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 [ConcSD], 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!

채택된 답변

Priya Moorthy
Priya Moorthy 2025년 2월 6일
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개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by