-
Notifications
You must be signed in to change notification settings - Fork 0
/
DownloadInstallGail_2_0_0.m
32 lines (29 loc) · 1.07 KB
/
DownloadInstallGail_2_0_0.m
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
28
29
30
31
32
% This scripts is to download and install GAIL version 2.0.0 into the
% location you choose
%
% Step 1. Place this M-file where you want GAIL to go
%
% Step 2. Run this M-file in MATLAB
%
%This file installs GAIL version 2.0.0 in the subdirectory
%"GAIL_2.0.0/GAIL_Matlab".
%% Download the package and change the directory
disp('The GAIL package is now being downloaded...')
unzip('http://math.iit.edu/~openscholar/sites/default/files/meshfree/files/gail_2_0.zip') %download and unzip
cd('GAIL_2_0') %get to the right subdirectory
%% Install GAIL
GAIL_Install %this installs GAIL
fprintf('\n\nNext we will run a quick test. Press RETURN to continue...\n')
pause
%% Run a quick test
fprintf('\nmuhat=meanMC_g(@(n) rand(n,1))\n')
muhat=meanMC_g(@(n) rand(n,1)) %run meanMC_g once
fprintf('\nThis answer should be close to 0.5.\n\n')
%Then you should be ready to use GAIL
disp('Next README.txt will be displayed. Press RETURN to continue to ');
disp('the next line, or press the spacebar to advance to the next page...');
pause
%% Print out README.txt
more on
type('README.txt')
more off