FUNCTION REFERENCE

subsref

Apply a substruct description to a value.

Apply a substruct description to a value.

Syntax

value = subsref(value, subscripts)

Example

s=struct('a',[10 20]); subsref(s,substruct('.','a','()',{2}))   % 20

Differences from MATLAB: Numeric and colon subscripts on two-dimensional arrays only.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.