f



Using "ode15s" in GUI

Dear all,
I am trying to develop a gui for my simple code which is a enzyme substrate reaction system. The enzyme substrate kinetics is defined in terms of odes which are solved using ode15s. I would like to develop a simple gui code which will use my code and plot one of the state variable which the user selects on the gui.

Putting it simple: I would like to develop a gui for the following code. In the GUI the user will select a state variable (C/P/X) to be plotted. 
I want to learn how to integrate ode15s in gui. 



function EnzymeSubstrateGui
T = [0 10];
y0 = [1 0 .0001];   

umax    = 5; 
Y      = .3;
Ks     = 2; 
[t,y] = ode15s(@system,T,y0,[],umax,Y,Ks);

figure(1)
plot(t,y)
title('Enzyme-Substrate')

function dydt = system(t,y,umax,Y,Ks)

C       =     -umax*(y(1)/Ks+y(1))*y(3);
P       =      (1-Y)*umax*(y(1)/Ks+y(1))*y(3);
X       =      umax*Y*(y(1)/Ks+y(1))*y(3);

dydt =  [C; P; X];
0
Bikash
12/19/2016 2:58:03 PM
comp.soft-sys.matlab 211264 articles. 26 followers. lunamoonmoon (257) is leader. Post Follow

0 Replies
467 Views

Similar Articles

[PageSpeed] 52

Reply: