[SciPy-user] Numpy for Matlab users

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Feb 15 11:33:59 EST 2006


Robert Kern wrote:
>Nils Wagner wrote:
>  
>>Hi all,
>>
>>I am converting a Matlab code into  a numpy/scipy  code.
>>
>>How can I translate
>>
>>H(k+1,:) = [ ]
>>
>>into numpy ?
>>    
>
>Describe what it does in Matlab.
>
>  
It removes the last row of the matrix.

a = rand(4,3)
a(4,:) = []
Now a  is  a 3 \times 3 matrix
 
Nils
 





More information about the SciPy-User mailing list