%------------------------------------------------------------------------------------------
%
% Title:    Calcium Signals in Small Structures
% Filename: CaSignal_KOnKOff.m
% Author:   Ronald van Elburg
% 
% Associated Paper:
% Cornelisse LN, van Elburg RAJ, Meredith RM, Yuste R, Mansvelder HD (2007) 
% High Speed Two-Photon Imaging of Calcium Dynamics in Dendritic Spines: 
% Consequences for Spine Calcium Kinetics and Buffer Capacity. 
% PLoS ONE 2(10): e1073 doi:10.1371/journal.pone.0001073
%------------------------------------------------------------------------------------------
% Experiment Specific Parameters
NameExperiment= 'CSEKOnKOff' ;
ExpDir='ExpKOnKOff';
Observable=     'Dye';
% 	LoopVar=KMinus_EndogenousBuffer*10
% 	LoopVar2=KPlus_EndogenousBuffer*1000
%   for KMinus_EndogenousBuffer = 0.25 to 10 step 0.25
%   for KPlus_EndogenousBuffer  = 0.025  to 1 step 0.025


FirstVarName=  'KMinus_EndogenousBuffer';
SecondVarName=  'KPlus_EndogenousBuffer';
FirstVarMeshParams      =   0.25:0.25:10;         % KMinus_EndogenousBuffer
FirstVarFileMesh        =   25:25:1000;             % Numbering of FirstVar in filename beginvalue:stepsize:endvalue

FirstVarSubset          =   [];
FirstVarSubsetIndex =       FirstVarSubset./10;
SecondVarMeshParams     =   0.025:0.025:1 ;            % KPlus_EndogenousBuffer 
SecondVarFileMesh       =  25:25:1000;            % Numbering of SecondVar in filename beginvalue:stepsize:endvalue 
FirstFig=   11;
SecondFig=  12;

DyeTotal=100;

loadfrompar=1;
makeFigures=1
run CaSignal_ExpMain12