TEMP = taux(LAT < 0 & LAT > -9 & LON < 90 & LON > 70,timeIndex);
outputs this wonderful error:
Index exceeds matrix dimensions.
taux is 360x160x192.
LAT is 160x360, as is LON. timeIndex is 192x1 (it's an index of values for which time is between 1998 and 1999, for example)
Even if I invert the matrix or try the following, the error still exists.
TEMP = taux((LAT < 0 & LAT > -9 & LON < 90 & LON > 70)',timeIndex)
OR
TEMP = taux(LAT < 0 & LAT > -9 & LON < 90 & LON > 70,LAT < 0 & LAT > -9 & LON < 90 & LON > 70,timeIndex);