1function RBinstall (quiet) 2%RBINSTALL install the RBio toolbox for use in MATLAB 3% Compiles the Fortran mexFunctions RBread, RBwrite, RBtype, and RBraw, and 4% the C mexFunction UFfull_write, and adds the current directory to the MATLAB 5% path. 6% 7% Example: 8% 9% RBinstall 10% 11% See also RBread, RBwrite, RBtype, RBraw. 12% 13% Copyright 2009, Timothy A. Davis 14 15if (nargin < 1) 16 quiet = 0 ; 17end 18 19if (~quiet) 20 help RBio 21end 22 23RBmake 24 25s = pwd ; 26addpath (s) ; 27 28cd private 29testRB1 30if (exist ('UFget') == 2) %#ok<EXIST> 31 testRB2 32end 33cd (s) 34 35if (~quiet) 36 fprintf ('\nRBio is ready to use. Your path has been modified for\n') ; 37 fprintf ('this session, by adding the following path:\n') ; 38 fprintf ('%s\n', s) ; 39 fprintf ('Use the pathtool to modify your path permanently.\n') ; 40end 41 42