MATLAB: How to convert a [1,a,a] array in a [a,a] array

array conversion

I'd like to make a crosssection in a 3D array using surf(Array(1, : , : )) kindish fonctions but Array(1, : , : ) outputs a 3D array and surf() needs a 2D array.
Is there a simple function to do it or must i create a new variable to store Array(1, : , : )
Thank you, Marc

Best Answer

squeeze()