RTXI 1.3
hdf/RTXIh5_MATLAB/hasfield.m
Go to the documentation of this file.
00001 function out = hasfield(structure,fieldname)
00002     fields = fieldnames(structure);
00003     out = false;
00004     for i=1:length(fields)
00005         if strcmp(fieldname,fields{i})
00006             out = true;
00007         end
00008     end
00009 end
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines