Home > atmlab > arts > xml > xmlCheckSize.m

xmlCheckSize

PURPOSE ^

Internal function to check whether enough data fields were read from file.

SYNOPSIS ^

function xmlCheckSize(ne, nr)

DESCRIPTION ^

 Internal function to check whether enough data fields were read from file.

    Exits with error message if not.

 FORMAT   xmlCheckSize(ne, nr)

 IN   ne   Expected number of items
 IN   nr   Read number of items

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

xmlCheckSize.m

SOURCE CODE ^

0001 % Internal function to check whether enough data fields were read from file.
0002 %
0003 %    Exits with error message if not.
0004 %
0005 % FORMAT   xmlCheckSize(ne, nr)
0006 %
0007 % IN   ne   Expected number of items
0008 % IN   nr   Read number of items
0009 
0010 % 2002-10-18   Created by Oliver Lemke.
0011 
0012 function xmlCheckSize(ne, nr)
0013 
0014 if nr(1) ~= ne
0015   error ('Not enough input data found in file');
0016 end
0017

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005