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?

 채택된 답변

tash7827
tash7827 2016년 7월 21일

0 개 추천

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))

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

도움말 센터File Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품

질문:

2016년 7월 21일

답변:

2016년 7월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by