[Numpy-discussion] Extending dimensions of a matrix
mesanthu at gmail.com
Thu May 26 22:52:17 EDT 2011
I am trying to extend a piece of matlab code into numpy.
And I am stuck at converting, ( x is a nX3 matrix)
dim = size(x,1) % would be n
nx = x(:,:,ones(1,dim)) % would be nX3Xn matrix ..
Now the same in Numpy seems to be tricky to me .. Can somebody help me in
writing this piece of code.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion