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