How can I use a Matlab function in SimBiology?
Show older comments
Hi,
I am building a model in SimBiology, in which I would like to add the green reactions of the diagram below. The reaction Th0_act (deg_Th0F1) is a first order process which depends on Th0, but also needs the presence of MACR_act or DC_act.

I do not know the specific quantity of MACR_act or DC_act consumed for the Th0_act reaction, but I do know that it is necessary to have at least one unit of any of the two species to make the system work. At that point, I would like to use the following APC.m matlab function in my SimBiology model:
%%APC presentation
function presentation = APC(MACR_act, DC_act)
presentation=0;
if MACR_act>0
presentation=1;
elseif DC_act>0
presentation=1;
end
And I would like to multiply my ReactionFlux7 by my APC.m output (presentation= 1 or 0) to proceed or not with the reaction.
d(Th0_act)/dt = 1/Lymph_node*(ReactionFlux7 - ReactionFlux8)
ReactionFlux7 = deg_Th0F1.kdeg_Th0*F1*Th0
ReactionFlux8 = (degTh0_act.kdeg_Th0*Th0_act)*Lymph_node
I would appreciate any help about how to implement the function in my model.
Thank you in advance,
Violeta
Accepted Answer
More Answers (0)
Categories
Find more on Scan Parameter Ranges in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!