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

Link to this comparison view

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