Borrar filtros
Borrar filtros

What does this warning mean?

2 visualizaciones (últimos 30 días)
tash7827
tash7827 el 21 de Jul. de 2016
Respondida: tash7827 el 21 de Jul. de 2016
It says "The rule expression is invalid. Check rule expression for completeness." I am trying to make an initial assignment, and my expression is this:
[Static Glucagon Secr] = -[p]*[[Static Glucagon Secr] - max(((o2*([Hypoglycemic Threshold] - [Plasma Glu]))/([Plasma Ins Conc]+[Basal Plasma Ins Conc]) +[Basal Glucagon Secr]),0)]
Eventually, my goal is to create sort of an "if then" situation with the model. So that if G>Gb, this expression is true, otherwise it is not. I am using initial assignments, as well as two events for this.
How can I fix this warning?

Respuesta aceptada

tash7827
tash7827 el 21 de Jul. de 2016
Okay, I figured it out - it was just the brackets. It worked when the expression looked like this:
[Static Glucagon Secr] = -[p]*([Static Glucagon Secr] - max(((o2*([Hypoglycemic Threshold] - [Plasma Glu]))/([Plasma Ins Conc]+[Basal Plasma Ins Conc]) +[Basal Glucagon Secr]),0))

Más respuestas (0)

Comunidades de usuarios

Más respuestas en  SimBiology Community

Categorías

Más información sobre Extend Modeling Environment en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by