Last change
on this file since 150 was
142,
checked in by bduin, 5 years ago
|
Updated collection of datasets
|
File size:
552 bytes
|
Line | |
---|
1 | %PR_SHOWDSETS Show datasets and store results in DSET
|
---|
2 |
|
---|
3 | forget = {'Contents','mfeat_all','check_','pr_'};
|
---|
4 | commands = struct2cell(dir('*.m'));
|
---|
5 | commands = commands(1,:);
|
---|
6 | L = strmatch('pr_',commands);
|
---|
7 | commands(L) = [];
|
---|
8 |
|
---|
9 | for j=1:numel(commands)
|
---|
10 | commands{j} = commands{j}(1:end-2);
|
---|
11 | end
|
---|
12 | J = [];
|
---|
13 | for i=1:numel(forget)
|
---|
14 | J = [J strmatch(forget{i},commands)];
|
---|
15 | end
|
---|
16 | commands(J) = [];
|
---|
17 |
|
---|
18 | for j=1:numel(commands)
|
---|
19 | a = feval(commands{j});
|
---|
20 | [m,k,c] = getsize(a);
|
---|
21 | fprintf('%c%-14s %6i %6i %4i %s\n','%',commands{j},m,k,c,getname(a));
|
---|
22 | end
|
---|
23 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.