Navigation

Operators and Keywords

Function List:

C++ API

: val = getfield (s, field)
: val = getfield (s, sidx1, field1, fidx1, …)

Get the value of the field named field from a structure or nested structure s.

If s is a structure array then sidx selects an element of the structure array, field specifies the field name of the selected element, and fidx selects which element of the field (in the case of an array or cell array). See setfield for a more complete description of the syntax.

See also: setfield, rmfield, orderfields, isfield, fieldnames, isstruct, struct.

Package: octave