Hello All,<br><br>I am trying to extend a piece of matlab code into numpy. <br><br>And I am stuck at converting, ( x is a nX3 matrix)<br>Matlab :<br>dim = size(x,1) % would be n<br>nx = x(:,:,ones(1,dim)) % would be nX3Xn matrix ..<br>

<br>Now the same in Numpy seems to be tricky to me .. Can somebody help me in writing this piece of code.<br><br>Thanks<br>Santhosh<br clear="all"><br>