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