[Numpy-discussion] wiki page correction

Pauli Virtanen pav at iki.fi
Wed May 20 17:36:43 EDT 2009


Wed, 20 May 2009 12:08:46 -0700, Grant Kelly wrote:

> I believe there is an error on this wiki page:
> 
> http://www.scipy.org/NumPy_for_Matlab_Users
> 
> 
> MATLAB
>   y=x(2,:)
> PYTHON
>   y = x[2,:].copy()
> 
> shouldn't the Python version be:
>   y = x[1,:].copy()
> 
> If not, please advise.

Yes, it should be x[1,:].copy(). Please feel free to correct it.

-- 
Pauli Virtanen




More information about the NumPy-Discussion mailing list