Rebeca Hannah Oliveira in MATLAB Answers
Last activity on 3 Apr 2023

I want to simulate an observable which is dimensionless (eg: [S]/max [S]) , and I am using dimensional analysis in Simbiology app. Where on Simbiology Model Builder/Analyzer can I set the dimensions for an observable? This is the error that I am getting for the observables: Units are not defined for some model components. Define the units for all compartments, species, parameters, and active observables, or turn off unit conversion. Select all unitless components using the following command: unitlessObjects = sbioselect(modelObj, 'Units', '') where modelObj is the model object. To use dimensionless parameters with unit conversion, set their Units property to 'dimensionless'.\n
Abed Alnaif in MATLAB Answers
Last activity on 27 Apr 2022

Hello, Is it possible to select only certain timepoints for observable calculations, for example: mdl.addobservable('maxA','max(A(time>(3*7*24)))','Units','dimensionless'); In my example, A is a parameter that is set by a repeated assignment rule. When I run the model in R2021b, I get the following error, whih suggests incorrect dimensions (but my observable expression should return a scalar, no?): ------------------------------------------------------ When running sbiosteadystate: Error using sbiosteadystate (line 128) sbiosteadystate encountered a model compilation error. Caused by: Error using SimBiology.internal.verifyHelper --> Error reported from Expression Validation: The result of evaluating observable 'maxA' has the wrong size. It must either be a scalar or a column vector of the same length as the time vector. ------------------------------------------------------- When running sbiosimulate: Error using SimBiology.internal.simulate --> Error reported from Expression Validation: The result of evaluating observable 'maxA' has the wrong size. It must either be a scalar or a column vector of the same length as the time vector. ---------------------------------------------------- Please advise. Thank you, Abed