% startup_v5 is startup stuff for version 5 of matlab
  
% Set the jet colormap as the default.

set(0,'defaultfigurecolormap',jet(64))

% I tried setting the colordef to black (like in matlab4) but this
% made the text labels white and hard to read.  I could set the
% default to grey with "set(0, 'defaulttextcolor', [.35 .35 .35])" but
% this was still ugly and hard to read.

%  colordef('black');

% Get rid of the tex interpreter in title, xlabel, ylabel, etc.

set(0,'DefaultTextInterpreter','none')

% Get rid of the menu bar at the top of figures and menus

set(0,'DefaultFigureMenuBar','none')  

% format short g
format compact

% turn off the beep
system_dependent(14,0) % off
% system_dependent(14,1) % on
		       
% put into debug mode on error

% dbstop if error
  
% Set some paths.

addpath /home/eez_data/software/matlab -end
% addpath /home/griffin/matlab -end
addpath /home/toolbox/local/grib -end
% addpath /home/toolbox/local/m_map
% addpath /home/toolbox/local/disimp -end

% remove paths including the old netcdf path that keeps returning like a
% vampire.
  
ppxx = path;
if ~isempty(findstr(ppxx, '/home/toolbox/local/aiken:'))
  rmpath('/home/toolbox/local/aiken')
end
% if ~isempty(findstr(ppxx, '/home/toolbox/local/netcdf:'))
%   rmpath('/home/toolbox/local/netcdf')
% end
% if isempty(findstr(ppxx, '/home/toolbox/local/netcdf_matlab5.2:'))
%   addpath('/home/toolbox/local/netcdf_matlab5.2/ncfiles')
%   addpath('/home/toolbox/local/netcdf_matlab5.2/ncutility')
%   addpath('/home/toolbox/local/netcdf_matlab5.2/nctype')
%   addpath('/home/toolbox/local/netcdf_matlab5.2')
% end

clear all
