Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:issubfield [2018/08/23 14:43] (current)
Line 1: Line 1:
 +=====  ISSUBFIELD =====
 +
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help issubfield"​.
 +
 +<​html><​pre>​
 +  <a href=/​reference/​issubfield><​font color=green>​ISSUBFIELD</​font></​a>​ tests for the presence of a field in a structure just like the standard
 +  Matlab ISFIELD function, except that you can also specify nested fields
 +  using a '​.'​ in the fieldname. The nesting can be arbitrary deep.
 + 
 +  Use as
 +    f = issubfield(s,​ '​fieldname'​)
 +  or as
 +    f = issubfield(s,​ '​fieldname.subfieldname'​)
 + 
 +  This function returns true if the field is present and false if the field
 +  is not present.
 + 
 +  See also ISFIELD, <a href=/​reference/​getsubfield><​font color=green>​GETSUBFIELD</​font></​a>,​ <a href=/​reference/​setsubfield><​font color=green>​SETSUBFIELD</​font></​a>​
 +</​pre></​html>​