Add AUC to SimBiology Model
Andrew Heitman
on 25 Sep 2019
IS there a quick and easy way to calculate AUC in SimBiology without exporting results to an NCA analysis>?
6 Comments
Time DescendingHi Andrew,
Yes there is. If you are doing your analyses in the task editor, you can calculate statistics in the 'explorer' part of the task editor by using the trapz function, see screenshot. If you using SimBiology programmatically (script/command line) and are using the simulation data from sbiosimulate or a simfunction, you can use a command like the one below to calculate the AUC from a SimData object.
AUC = trapz(simData.Time,simData.Data(:,1)); % for the AUC of the first logged state in your model
If you post a question next time, do you mind posting it in the Answers section, rather than the Discussion section? Let me know whether this answered your question. Best, Sietse
Sign in to participate

