% Golgi model with vesicular transport between cisternae clear; % definition of cisternae: dc=1.5; % diameter in micrometers hc=.03; % heigth of cisternae in micrometers Vc=pi*(dc/2)^2*hc; % volume Sc=2*pi*(dc/2)^2+2*(dc/2)*pi*hc; % surface % definition of transport vesicles: dv=.15; % diameter Vv=(4/3)*pi*(dv/2)^3; % volume Sv=4*pi*(dv/2)^2; % surface % number of cisternae: NC=6; % starting concentration in first cisterna: N_0=zeros(1,NC); % empty cisternae at time t=0 ; N_0 is a vector with NC fields N_0(1)=1000; % number of proteins in the 1st cisterna at t=0; initial condition % ratio of volumes: a=Vv/Vc; disp(a); % transport mode: % m = 1: anterogrde+retrograde w/o self-fusion; 2 vesicles from middle % cist. (Fig. A) % m = 2: only anterograde, constant flux into 1st (1st cist. const), flux out % from the last (Fig. B) % % value of m is hard-coded in this script; set value of m in next line m=1; c_crit=0.90; % stop when 90% equilibrium is reached n_disp=100; % display results every n_disp steps % save data s=1; % set s=1 to save data % define "fpath" in next line where output file should be saved fpath='/home/vhelms/matlab/vesicular/vesicular'; n_save=100; % save every n_save steps if s==1, M_save(1,:)=[0 N_0]; n_s=1; end N(1,:)=N_0; % N counts the particles in each cisterna; n=1; % n counts the iteration steps c=0; % c is the concentration in the last cisterna while c