forked from cvnlab/GLMdenoise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.m
20 lines (18 loc) · 766 Bytes
/
setup.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% This script downloads the example dataset (if it has not already
% been downloaded) and adds GLMdenoise to the MATLAB path.
% Download the dataset if it has not already been downloaded.
% (If you like, you may manually download the dataset from:
% http://kendrickkay.net/GLMdenoise/exampledataset.mat)
files = {'exampledataset.mat'};
for p=1:length(files)
if ~exist(files{p},'file')
fprintf('Downloading %s (please be patient).\n',files{p});
urlwrite(sprintf('http://kendrickkay.net/GLMdenoise/%s',files{p}),files{p});
fprintf('Downloading is done!\n');
end
end
clear p files;
% Add GLMdenoise to the MATLAB path (in case the user has not already done so).
path0 = strrep(which('setup.m'),'/setup.m','');
addpath(genpath(path0));
clear path0;