Home > atmlab > arts > qarts_isset.m

qarts_isset

PURPOSE ^

QARTS_ISSET Determines if a Qarts field is set or not

SYNOPSIS ^

function b = qarts_isset( qfield )

DESCRIPTION ^

 QARTS_ISSET   Determines if a Qarts field is set or not

   Returns 0 if the data equal {}, and 1 otherwise.

 FORMAT   b = qarts_isset( qfield )
        
 OUT   b        Boolean. 0 if {}, 1 otherwise.
 IN    qfield   Data of some Qarts field

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

qarts_isset.m

SOURCE CODE ^

0001 % QARTS_ISSET   Determines if a Qarts field is set or not
0002 %
0003 %   Returns 0 if the data equal {}, and 1 otherwise.
0004 %
0005 % FORMAT   b = qarts_isset( qfield )
0006 %
0007 % OUT   b        Boolean. 0 if {}, 1 otherwise.
0008 % IN    qfield   Data of some Qarts field
0009 
0010 % 2008-05-27   Created by Patrick Eriksson.
0011 
0012 
0013 function b = qarts_isset( qfield )
0014 
0015   if iscell(qfield) & length(qfield) == 0
0016     b = 0;
0017   else
0018     b = 1;
0019   end  
0020 
0021 
0022

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