-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathgsp_start.m
43 lines (31 loc) · 889 Bytes
/
gsp_start.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
function gsp_start()
%GSP_START Initialize the toolbox
% Usage: gsp_start();
%
% Initialisation script for the GSPBox. This script add the different
% path needed to run the toolbox.
%
% References: perraudin2014gspbox
%
% Author: Nathanael Perraudin
% Date: 14 March 2014
%% adding dependency
global GLOBAL_gsppath;
GLOBAL_gsppath = fileparts(mfilename('fullpath'));
addpath(genpath(GLOBAL_gsppath));
% Load the version number
bp=[GLOBAL_gsppath,filesep];
[FID, MSG] = fopen ([bp,'gspbox_version'],'r');
if FID == -1
error(MSG);
else
gspbox_version = fgetl (FID);
fclose(FID);
end
banner = sprintf(['GSPBox version %s. Copyright 2013-2015 LTS2-EPFL,\n',...
'by Nathanael Perraudin, Johan Paratte, David Shuman ',...
'and Vassilis Kalofolias'], ...
gspbox_version);
% display banner
disp(banner);
end