[Numpy-discussion] indexing (compared to matlab)

Brian Blais bblais@bryant....
Sat Jul 26 10:05:05 CDT 2008


On Jul 26, 2008, at Jul 26:10:12 AM, Alan G Isaac wrote:

> This is probably the most asked single question.
> Use ``ix_``. Example below.
>

cool.  this should definitely be in the Numpy for Matlab users page,  
http://www.scipy.org/NumPy_for_Matlab_Users, right after the line:

Matlab     Numpy         Notes
a(1:3,5:9) a[0:3][:,4:9] rows one to three and columns five to nine of a


because this example gives a read-only submatrix.  I looked there  
first to get an answer, and it wasn't forthcoming.

thanks for the tip!

			bb

-- 
Brian Blais
bblais@bryant.edu
http://web.bryant.edu/~bblais



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080726/ac3a7b8b/attachment.html 


More information about the Numpy-discussion mailing list