-
Notifications
You must be signed in to change notification settings - Fork 56
/
gsp_install.m
48 lines (38 loc) · 1.06 KB
/
gsp_install.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function [ ] = gsp_install( install_unlcobox )
%GSP_INSTALL Install third party software
% Usage: gsp_install();
%
% Input parameters
% install_unlcobox : bool (1 to install the UNLocBoX)
%
% This function installs third party software. It require an internet
% connection.
%
% You should install the UNLocBoX only if you are not using the
% developement version.
%
% It will install the gaimc toolbox and compile some functions.
%
% See also: gsp_install_unlocbox
global GLOBAL_gsppath;
gsp_start;
if nargin<1
install_unlcobox = 0;
end
FS=filesep;
fprintf('Install the GAIMC toolbox: ')
try
zipfilename = 'http://www.mathworks.com/matlabcentral/fileexchange/submissions/24134/v/1/download/zip';
outputdir = [GLOBAL_gsppath,FS,'3rdparty',FS,'gaimc'];
unzip(zipfilename,outputdir)
fprintf('Installation sucessfull!\n\n')
catch
warning('Could not install GAIMC')
end
if install_unlcobox
gsp_install_unlocbox
else
fprintf('The function did not install the UNLocBoX. To do it, run: gsp_install_unlcobox')
end
gsp_make;
end