I have a 3D matrix called M of size <100x100x100>, so basically coordinates.
I am trying to get the array of at specific values of y. However using M(:,1,:) I get a <100x1x100> matrix whereas finding I can use M(:,:,1) and get a <100×100> matrix.
Is there an easy way to turn the <100x1x100> into a <100×100> by either isolating it a different way or using a short translation?
Thanks,
Does
squeezedo what you want?