source: prdatasets/pr_datfiles.m @ 155

Last change on this file since 155 was 142, checked in by bduin, 5 years ago

Updated collection of datasets

File size: 442 bytes
Line 
1%PR_DATFILES Full names of dat-files
2
3function datfiles = pr_datfiles(comname)
4
5if nargin < 1
6  comname = callername;
7end
8dirname = fileparts(which(comname));
9datdir = fullfile(dirname,'data');
10files = dir([fullfile(datdir,comname) '*.dat']);
11n = numel(files);
12datfiles = cell(1,n);
13[datfiles{:}] = deal(files.name);
14for i=1:n
15  datfiles{i} = fullfile(datdir,datfiles{i});
16end
17if n==1
18  datfiles = datfiles{1};
19end
20
21
22
23
Note: See TracBrowser for help on using the repository browser.