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