[SciPy-user] Numpy for Matlab users

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Feb 15 10:33:59 CST 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