%tristable1.m Model of the Tristable toggle switch based on "Prediction and %measurement of an autoregulatory genetic module" by Farren Isaacs et al. function dzdt=tristable1(t,y) %volume function %tfinal=20; %tLast=0; %dt=.01; %vray=zeros(tfinal/dt+1,2); %vray(:,1)=0:dt:tfinal; %vray(1,2)=1; %for i=2:(tfinal/dt) % q=mod(i*dt,1); % vray(i,2)=exp(log(2)*(i*dt-tLast)); % if q==0 % tLast=tLast+1; % end %disp(vray); %end %counter=1; %while (counter