Rev | Line | |
---|
[139] | 1 | %PR_SHOWDSETS Show datasets and store results in DSET
|
---|
| 2 |
|
---|
[142] | 3 | forget = {'Contents','mfeat_all','check_','pr_'};
|
---|
[151] | 4 | dirr = fileparts(which(mfilename));
|
---|
| 5 | commands = struct2cell(dir(fullfile(dirr,'*.m')));
|
---|
[139] | 6 | commands = commands(1,:);
|
---|
| 7 | L = strmatch('pr_',commands);
|
---|
| 8 | commands(L) = [];
|
---|
| 9 |
|
---|
| 10 | for j=1:numel(commands)
|
---|
| 11 | commands{j} = commands{j}(1:end-2);
|
---|
| 12 | end
|
---|
[142] | 13 | J = [];
|
---|
[139] | 14 | for i=1:numel(forget)
|
---|
[142] | 15 | J = [J strmatch(forget{i},commands)];
|
---|
[139] | 16 | end
|
---|
[142] | 17 | commands(J) = [];
|
---|
[139] | 18 |
|
---|
| 19 | for j=1:numel(commands)
|
---|
| 20 | a = feval(commands{j});
|
---|
| 21 | [m,k,c] = getsize(a);
|
---|
[142] | 22 | fprintf('%c%-14s %6i %6i %4i %s\n','%',commands{j},m,k,c,getname(a));
|
---|
[139] | 23 | end
|
---|
| 24 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.