On Thu, May 26, 2011 at 21:52, santhu kumar wrote:
> Hello All,
>
> I am trying to extend a piece of matlab code into numpy.
>
> And I am stuck at converting, ( x is a nX3 matrix)
> Matlab :
> dim = size(x,1) % would be n
> nx = x(:,:,ones(1,dim)) % would be nX3Xn matrix ..
>
> Now the same in Num
Hello All,
I am trying to extend a piece of matlab code into numpy.
And I am stuck at converting, ( x is a nX3 matrix)
Matlab :
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 p