source: prdatasets/pr_showdsets.m

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