source: prdatasets/pr_showdsets.m @ 151

Last change on this file since 151 was 151, checked in by bduin, 5 years ago
File size: 604 bytes
Line 
1%PR_SHOWDSETS Show datasets and store results in DSET
2
3forget = {'Contents','mfeat_all','check_','pr_'};
4dirr = fileparts(which(mfilename));
5commands = struct2cell(dir(fullfile(dirr,'*.m')));
6commands = commands(1,:);
7L = strmatch('pr_',commands);
8commands(L) = [];
9
10for j=1:numel(commands)
11  commands{j} = commands{j}(1:end-2);
12end
13J = [];
14for i=1:numel(forget)
15  J = [J strmatch(forget{i},commands)];
16end
17commands(J) = [];
18 
19for 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));
23end
24
Note: See TracBrowser for help on using the repository browser.