IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
demo_classes_txt.m
Go to the documentation of this file.
1 %>@brief Creates a CSV file with a list of classes, similar to what is seen in blockmenu.m
2 %>@file
3 %>@ingroup introspection
4 %> @sa itemlist2cell.m
5 aa = {'block', 'sgs', 'peakdetector', 'fsg', 'irlog'};
6 
7 cc = {};
8 for i = 1:numel(aa)
9  l = classmap_get_list(aa{i});
10  cc = [cc; itemlist2cell(l, 0, 1)];
11 end;
12 
13 % Generates text string
14 s = char(10)*ones(size(cc, 1), 1);
15 for i = size(cc, 2):-1:1
16  s = [char(cc(:, i)), s];
17 end;
18 
19 filename = 'irr_classes.txt';
20 h = fopen(filename, 'w');
21 
22 fwrite(h, s');
23 fclose(h);
24 edit(filename);
function classmap_get_list(in classname, in inputclass)
function blockmenu(in varargin)
function itemlist2cell(in list, in verboselevel, in style)
Converts an array of mapitem objects to a cell of indented strings.