Today I tried to do something like this in MATLAB:
This is because even if you slice an N-dimensional array down to 1D or 2D, it stays the same dimension unless you slice out the first two dimensions:
squeeze it. The
squeeze function removes singleton
Really, MATLAB? Couldn’t you have figured that one out on your own?