<< rmfield | Data structures | struct >> |
stOut = setfield(stIn, fieldname, fieldvalue) |
stOut = setfield(stIn, fieldname1, fieldvalue1, ..., fieldnameN, fieldvalueN) |
a structure.
a string or characters vector.
a variable value.
a structure: result.
Set the contents of the specified field to the value.
Alternative syntax: S.(fieldname) = fieldvalue
Alternative syntax: S(idx1, idx2).(fieldname) = fieldvalue
A = {};
setfield(A, 'vv', 3)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET