out =
subsref(A, idx)
¶Perform the subscripted element selection operation according to the subscript specified by idx.
A - ncArray value
idx - idx structure
out - output value of operation
A slice of the NetCDF variable can be load by using A(index1,index2,...) and attributes can be loaded by A.attribute_name or A.(’attribute_name’)
If index selection is followed by struct selection ’coord’, then the coordinates corresponding to the slice are loaded:
For example, the coordinate of element A(4,3):
[lon,lat] = A(4,3).coord;
Package: ncarray