mphevaluate(model,expr) evaluates the expression
expr defined in the Parameters node.
str = mphevaluate(model) returns all the expressions defined in the Parameters node as a structs arrays.
str = mphevaluate(model,{e1,...}) returns all the expressions defined in the cell array
{e1,...} as a structs arrays. When multiple expressions are evaluated only one output is supported.
[value,unit,def,descr] = mphevaluate(model,expr,...) evaluates the expression
expr and return the unit (
unit), the definition in the model (
def) and the description (
descr).
value = mphevaluate(model,expr,unit,'value') returns only the value of the expression
expr.
unit = mphevaluate(model,expr,unit,'unit') returns only the unit of the expression
expr.
def = mphevaluate(model,expr,unit,'valueunit') returns as a string the value and the unit of the expression
expr. This is useful to set a new parameter based on an existing one.