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