% 
% Matlab will automatically load the file startup.m from which ever directory it is invoked.
% Some aliasing is recommended to ensure Matlab is always executed from the directory containing
% startup.m .  For example, place the startup.m file in ~/CPL/matlab/ and set an alias in .cshrc :
% alias matlab 'cd ~/CPL/matlab; /bin/matlab'
% 
% 
% Cut and paste the following lines to startup.m :
%
   %------------------------------ BEGIN CUT ------------------------------ 
   %

   %
   % Add EPICncVis and its components to the Matlab path.
   % NOTE:  For future versions of EPICncVis, modifiy the variable
   %        VERSION appropriately.
   %
   VERSION              =   'EPICncVis_2.03';
   EPIC_MATLAB_SRC_PATH = [ '~/epic/tools/matlab/' VERSION ];  

   current_dir = pwd;
   eval([ 'cd ' EPIC_MATLAB_SRC_PATH '/EPICncVis;  startup;  cd ' current_dir ';' ])

   %
   %------------------------------- END CUT ------------------------------ 

