How to assign a rate constant that will change through time into SimBiology model?

조회 수: 3 (최근 30일)
I have a set of drug releaseing data, and I would like to apply its drug release kinetic into my model. The data and the regression equation is attached below. The equation used for the data set is a exponential plateau formula defined as y = ym-(ym-yo)*exp(-k*x). y is drug release percentage, ym,yo and k are constant and x reprecents time. How could I assign this durg release kinetic into my simbiology model? The derivative of this drug releaseing profile is the rate. However, the rate change through time, and the simbiology don't allow me to use time into my equation. Is there any way I could solve this kind of problem? Thank you.

채택된 답변

Sietse Braakman
Sietse Braakman 2021년 1월 12일
Hi Jesse,
You can do this using a repeated assignment and the reserved keyword 'time'. E.g.:
  • Add a species 'drug_release' to your model
  • Add the necessary parameters ym, yo, k to your model
  • Add a repeated assignment to your model where the rule reads: 'drug_release = ym-(ym-yo)*exp(-k*time)'
Make sure your time units are consistent between the 'time' in your repeated assignment and the rest of your model.
Let me know if that works for you.
Best,
Sietse
  댓글 수: 1
Jesse Chao
Jesse Chao 2021년 1월 18일
Hello Sietse,
Thank you very much for your very detail suggestions. I have successfully applied the equation into my model by following your steps. I am very appreciated your help. Thank you.
Have a nice day.
Best,
Jesse

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

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Extend Modeling Environment에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by