Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help setsubfield”.
SETSUBFIELD sets the contents of the specified field to a specified value just like the standard Matlab SETFIELD function, except that you can also specify nested fields using a '.' in the fieldname. The nesting can be arbitrary deep. Use as s = setsubfield(s, 'fieldname', value) or as s = setsubfield(s, 'fieldname.subfieldname', value) See also SETFIELD, GETSUBFIELD, ISSUBFIELD
Share this page: