-
Notifications
You must be signed in to change notification settings - Fork 2
/
MTSG_Path.m
42 lines (28 loc) · 843 Bytes
/
MTSG_Path.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
% Initialize Matlab's path to include MTSG_Toolbox
%
%
%
% Copyright 2015 The Regents of the University of California
%
% Implemented by Jeff Irion (Adviser: Dr. Naoki Saito)
% version info
MTSGVERSION = 001;
% declare MTSGPATH
MTSGPATH = [fileparts(mfilename('fullpath')),filesep];
% get MATLAB version info
V = version('-date');
V = str2double(V(end-3:end));
% generate the path string ==> includes the folder and multiple levels of subfolders below it
if V < 2006
fprintf('Warning: This version is only supported on Matlab 6.x or above');
mtsgp=genpath(MTSGPATH,1);
else
mtsgp=genpath(MTSGPATH);
end
addpath(mtsgp);
% generate datasets
Acquire_Data;
% print a "success" message
fprintf('\n\n\nMTSG Toolbox v %g was successfully installed.\n\n\n', MTSGVERSION);
% clear variables
clear MTSGVERSION MTSGPATH V mtsgp