% startup.m
% Tom's own startup file
% This establishes the matlabpath for sessions
%  Here in /home5/tom/mesh/meshtools/realtools 
%  this will truncate the path to just here and 'saga'

disp(['Startup with new path /home5/tom/mesh/meshtools/realtools/startup.m'])

P = path;
k = findstr(P,':');
P = P( [1:(k(23)-1)] );
%   23 directories before the /home5/tom/matlab  directory

path(P,'/home5/tom/mesh/meshtools/realtools:/home5/tom/matlab/saga')

path
