필터 지우기
필터 지우기

Adding equations as a function of time

조회 수: 4 (최근 30일)
Day
Day 2023년 3월 6일
댓글: Arthur Goldsipe 2023년 3월 7일
Hi,
Could you please help me in solving the following:
I set a trigger event in Simbiology that when 'X' species exceeds a certain mass then the value of this species as X= k*Time, where k is a parameter. This condition is achieved at time equals n value. When I ran a simulation, I received an error saying that
Error computing event function at t=n
How should I solve this problem? I mean how could I force the content of a species to follow an equation as a function of time after a trigger event occured?

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2023년 3월 6일
I suspect the problem is with "Time". SimBiology requires you to reference time as "time" (all lowercase).
If that doesn't fix the problem, can you share the model?
  댓글 수: 2
Day
Day 2023년 3월 7일
I can't share my model as it is my project.
I replaced "Time" with "time". The error window didn't come up again but when the trigger event occurs, X=k*time is not executed. Why?
Arthur Goldsipe
Arthur Goldsipe 2023년 3월 7일
I don't know what the problem is. And without reproduction steps, I'm not sure how to help. If the issue is confientiality, would you be comfortable sharing the model with MathWorks Technical Support? If so, what do yo uthink of contacting them? If not, then my suggestion is to try to create reproductions steps that you are comfortable sharing. That is, remove any information you want to keep confidential.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scan Parameter Ranges에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by