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