-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathGAIL_Install.m
More file actions
27 lines (27 loc) · 1.14 KB
/
Copy pathGAIL_Install.m
File metadata and controls
27 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function GAIL_Install(isBuild)
%GAIL_INSTALL Install or reinstall GAIL. Add GAIL paths to MATLAB search path.
%
% isBuild: true to download and explode a zip file. Default to false.
%
if nargin < 1
isBuild = false;
end
[GAILPATH,GAILVERSION,MATLABVERSION] = GAILstart(false);
fprintf('\nWelcome to Guaranteed Automatic Integration Library (GAIL).\nYou are installing GAIL v%s.\n\n', GAILVERSION);
if MATLABVERSION < 7
error('This version is only supported on MATLAB 7 and above.');
end
gailp=genpath(GAILPATH);% Generate strings of paths to GAIL subdirectories
warninfo = warning('query','MATLAB:rmpath:DirNotFound');
warning('off',warninfo.identifier);
rmpath(gailp);% Remove path from MATLAB search path
warning(warninfo.state, warninfo.identifier);
addpath(gailp); % Add GAIL directories and subdirectories
savepath; % Save the changes
% file sturcture to build for the documentation purpose, by default it is
% false
if isBuild
unzip('http://www.math.iit.edu/~Meshfree-methods-seminar/GAIL/GAIL_Build.zip',[GAILPATH,'..',filesep]);
end
fprintf('\nGAIL version %s has been installed successfully.\n\n', GAILVERSION);
end