forked from domingomery/Balu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.m
45 lines (31 loc) · 716 Bytes
/
setup.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
clear all
close all
clc
BaluPath = pwd;
io = 'InputOutput';
addpath(fullfile(BaluPath));
addpath(fullfile(BaluPath,io));
I = imresize(imread('LogoBalu.png'),0.5);
imshow(I)
verBalu = 'Balu 4.0.1';
title(['Installing ' verBalu ' ...']);
d = dir;
n = length(d);
ft = Bio_statusbar(['Installing ' verBalu ]);
for i=1:n
ft = Bio_statusbar(i/n,ft);
st = d(i).name;
if and(exist(st,'dir'),length(st)>2)
pause(0.2)
fprintf('Adding directory %s...\n',st);
if strcmp(io,st)~=1
addpath(fullfile(BaluPath,st));
end
end
end
delete(ft)
savepath
title(['Installing ' verBalu 'installed']);
fprintf('%s installed succefully!\n',verBalu);
pause(2)
close all