How to add noise in SimBiology analyzer app

1 view (last 30 days)
Hi everyone,
I need help on how to add noise to experimental data sets in SimBiology analyzer app. I am working on a project, and required to add some noise to the data sets to test the model robustness.

Accepted Answer

Arthur Goldsipe
Arthur Goldsipe on 11 May 2022
Hi,
I can't think of a way to add noise using just the SimBiology Model Analyzer app. I think you will need to export the data to MATLAB, add noise there, and reimport the data. Here are more details on how to do that:
  1. Export the data by right clicking on it in the Browser and selecting Export Data to MATLAB Workspace... Change the variable name if you like, and then click OK.
  2. Add noise to the data from the MATLAB Command Window. The details of this will depend on the form of your noise. But let's assume you want to add normally distributed noise with a standard deviation of 2. Let's also assume that the variable you created in Step 1 was Data1, and that this data contains a variable named CONC. Then you can add noise to the CONC variable with code like this: Data1.CONC = Data1.CONC + 2*randn(size(Data1.CONC))
  3. Now, import the data with noise back into the SimBiology Model Analyzer app. To do that, click on the Data button in the toolstrip and select Import Data from MATLAB Workspace. Then select the appropriate variable name.
I hope that helps.
-Arthur
  2 Comments
Fulden Buyukozturk
Fulden Buyukozturk on 11 May 2022
Edited: Fulden Buyukozturk on 11 May 2022
Hi,
In addition to what Arthur described, for Step 2 you could use sbiosampleerror to add noise to data. Although it's a method for simulation data, it accepts numeric matrices as input. So you could apply it on experimental data as well.
Fulden
BLESSING AKAH
BLESSING AKAH on 12 May 2022
Thanks for the reply, that was helpful

Sign in to comment.

More Answers (0)

Communities

More Answers in the  SimBiology Community

Categories

Find more on Scan Parameter Ranges in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!