I have a piece of code in Matlab that I want to convert into Python/numpy.
I have a matrix ind
which has the dimensions (32768, 24). I have another matrix X
which has the dimensions (98304, 6). When I perform the operation
result = X(ind)
the shape of the matrix is (32768, 24).
but in numpy when I perform the same shape
result = X[ind]
I get the shape of the result
matrix as (32768, 24, 6).
I would greatly appreciate it if someone can help me with why I can these two different results and how can I fix them. I would want to get the shape (32768, 24) for the result
matrix in numpy as well