readVariablesAtIndexAlongDimension
read variables from file at a particular index (e.g., time)
Declaration
varargout = readVariables(variableNames)
Parameters
dimName
name of the dimension, character stringindex
index at which to read the data, positive integervariableNames
(repeating) list of variable names
Returns
varargout
(repeating) list of variable data
Discussion
Pass a list of variables to read and the data will be returned in the same order.
[u,v] = ncfile.readVariablesAtIndexAlongDimension('t',100,'u','v');