[Numpy-discussion] indexing (compared to matlab)

Brian Blais bblais at bryant.edu
Sat Jul 26 11:05:05 EDT 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 at bryant.edu
http://web.bryant.edu/~bblais



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080726/ac3a7b8b/attachment.html>


More information about the NumPy-Discussion mailing list