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