Answer the question
In order to leave comments, you need to log in
How to extract an array from a matrix?
Hello!
There is a 2x1 matrix. You need to push the elements (there are 80 of them) of the second row of this matrix into an array using numpy. I tried this myself, it didn't work:
newlist = []
for elem in np.matrix[1][0]:
newlist.append(elem)
newarray = np.array(newlist)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question