Cannot reshape array of size 14400 into shape

(gan chen) #1

cannot reshape array of size 14400 into shape

0 Likes

(gan chen) #2

when i used a other video from youtobe for lesson3, the commend went wrong(plt.imshow(np.reshape(M[:,140], dims), cmap=‘gray’):wink: ,and the ValueError : cannot reshape array of size 14400 into shape (120,90), but i don’t know how to fix it.

0 Likes

(Manuel) #3

You can’t because you can only re-shape to a shape which product equals the product of the original shape. Concretely, 14400×1 != 120x90

0 Likes