Documentation of link_alexis_scripts


Global Index (short | long) | Local contents | Local Index (short | long)


Help text

test
 TRUE and FALSE are used very often in my scripts

Cross-Reference Information

This script calls This script is called by

Listing of script link_alexis_scripts


  global TRUE FALSE
  TRUE = strcmp('a','a'); FALSE = ~TRUE;

  global ON_ALPHA
  [dump,arch] = unix('arch');
  ON_ALPHA = strcmp(arch(1:5),'alpha');
  vers=version;

  % path should only be set once in the beginning or after a
  %   clear command (otherwise all paths altered during a matlab
  %   session will be lost)

  if exist('RESETPATH')~=1; RESETPATH=TRUE; end
  if RESETPATH;

%   LAU_PATH = '/usr/users/lau/matlab';
    LAU_PATH = '/home/disk/tao/bantzer/matlab/lau';

    % get system defined MATLABPATH
%    path ( getenv('MATLABPATH') )



    % link various Toolboxes, search before system routines

    path ( [ LAU_PATH '/v4.0/Games'], path )
    path ( [ LAU_PATH '/v4.0/Nostalgia'], path )
    path ( [ LAU_PATH '/v4.0/TimeHandleToolBox'], path )
    path ( [ LAU_PATH '/v4.0/USER_DEMANDS'], path )
    path ( [ LAU_PATH '/v4.0/MathToolBox'], path )
    path ( [ LAU_PATH '/v4.0/Redefined'], path )
    path ( [ LAU_PATH '/v4.0/NaNToolBox'], path )
    path ( [ LAU_PATH '/v4.0/GeneralToolBox'], path )
    path ( [ LAU_PATH '/v4.0/GraphicsToolBox'], path )
    path ( [ LAU_PATH '/v4.0/IOToolBox'], path )
    path ( [ LAU_PATH '/v4.0'], path )
    path ( [ LAU_PATH ], path )

   if vers(1)=='5'

     path ( [ LAU_PATH '/v5.0'], path )
     path ( [ LAU_PATH '/v5.0/GeneralToolBox'], path )
     path ( [ LAU_PATH '/v5.0/GraphicsToolBox'], path )
     path ( [ LAU_PATH '/v5.0/IOToolBox'], path )
     path ( [ LAU_PATH '/v5.0/MathToolBox'], path )
     path ( [ LAU_PATH '/v5.0/NaNToolBox'], path )
     path ( [ LAU_PATH '/v5.0/Redefined'], path )
     path ( [ LAU_PATH '/v5.0/TimeHandleToolBox'], path )
     path ( [ LAU_PATH '/v5.0/USER_DEMANDS'], path )

   end
    % scripts for my own use only
    if strcmp(getenv('USER'),'lau');
    %  path ( '/usr/users/lau/PROGRAMS/ec_validation/decode', path )
    %  path ( '/usr/users/lau/PROGRAMS/monsoon_clim', path )
      pathdir ( [ LAU_PATH '/PrivateTools' ] )
      path ( '/usr/users/lau/WORKDIR', path )
    else
      disp(' ');
      disp('======================================================================');
      disp('Just for your information, the following Standard Matlab commands')
      disp('     are redefined after you link to Alexis''s scripts:')
      help v4.0/Redefined
      disp('======================================================================');
      disp(' ');
     disp('Hi, as you probably have noticed, most of the home grown routines,')
     disp('commonly referred to as Alexis Scripts, don''t work with matlab5.')
     disp(' Please feel free to update any particular routine you want to use')
     disp(' with matlab5, as I probably won''t have the time to do all of them.')
     disp(' I created a bunch of directories under')
     disp('                   /home/disk/tao/bantzer/matlab/lau/v5.0 ')
     disp('where you have write permission. Please put your name and what ')
     disp('you have updated as a comment in the .m files you update.')
    end
    RESETPATH = FALSE;
  end

  global MACH_IO
  MACH_IO = 'ieee-be';

  if ~exist('DEFINED_GLOBALS'); define_globals; end