source: prdatasets/pr_showdsets.m

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