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