Writing expression as function of time
Nicky
on 21 Jun 2023
Latest activity Reply by Arthur Goldsipe
on 23 Jun 2023
I am trying to simulate model of blood lymphocyte count from a paper using Simbiology. The rate of in or out following circadian rythym is kp(t)=km + kb cos [(t-tpeak)*2pi/24] Where and how do I write the expression ? I dont think I can write in repeated assignment ?
5 Comments
Time DescendingHi Arthur,
Thanks for the help. I have a follow up questions. Since the species base line (Lymphocyte) is changing according to the rate of kp, how do I expres % Inhibition of lymphocyte count if I have drug ? I normally express species_intial = constant then %inhibition = (species intial- species)/species_initial *100, but now species initial is a fuction of time. How do i define the baseline as fuction of time ?
You should be able to implement this circadian rhythm using a repeated assignment. One thing to note is that you represent time in SimBiology expressions as "time" rather than as "t". You will also need to write your mathemtical expression in MATLAB syntax. So it might look something like this: kp = km + kb*cos((time-tpeak)*2*pi/24)
Sign in to participate