-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.m
More file actions
31 lines (25 loc) · 742 Bytes
/
install.m
File metadata and controls
31 lines (25 loc) · 742 Bytes
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
%% BASmatlab is a toolbox for implementation of BAS optimization algorithms in Matlab.
% Add BAS to the path
% Author: Jiangyu Wang
% Reference: manopt.m in manopt toolbox
% Date: Apr. 1, 2019
addpath(pwd);
cd BAS;
addpath(genpath(pwd));
cd ..;
cd demo;
addpath(genpath(pwd));
cd ..;
disp('BAS was added to Matlab''s path.');
disp('%---------installation----------%');
savePath_flag = input('Save path for future Matlab sessions?[y/n]','s');
if strcmpi(savePath_flag, 'y')
flag = savepath();
if ~flag
disp('path was saved');
else
error('something was wrong in savepath() functions');
end
else
disp('path was not saved: install.m needs to be executed next-time');
end