%
% 12.03.2001, c
%
clear

global errmsg;

errmsg = {'must be a cell array of field names!',
	  'must be a structure with field names as in ''fields''!',
	  'wrong field name!',
	  'must be a string!'
	 };

fields = {'vaha',
	  'vek',
	  'jmeno',
	  'miry'
	 };
desc = {'%d', 1,
	'%d', 1,
	'%s', 1,
	'%d', 3
       };

[nRec, rec] = loadRecords( 'data.txt', fields, desc );


% $$$ 
% $$$ nRec = 3;
% $$$ 
% $$$ records = [];
% $$$ for ii = 1:nRec
% $$$   disp( ['Item ' num2str( ii ) ':'] );
% $$$   records = insertRecord( fields, records );
% $$$ end

plotField( 1, rec, 'vaha' );
