>From the 
http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/octcdf/inst/example_netcdf.m?revision=7926&content-type=text%2Fplain
example_netcdf.m  of the octcdf package:

Selecting

x = nc{'temp'}(1:181,1:360) ;

causes no problems, unlike doing

x = nc{'temp'}(true(181,360)) ;

error: octcdf: indexes must be increasing.

Doing instead

w = nc{'temp'}(:) ;

x = w(true(181,360)) ;

works fine, but requires to load the entire field beforehand.

M.
-- 
View this message in context: 
http://old.nabble.com/logical-indexing-in-octcdf-tp32420095p32420095.html
Sent from the octave-dev mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to