MATLAB: How to convert a 1x1x50 matrix to a vector

squeeze

How to convert a 1x1x50 matrix to a vector?

Best Answer

Use squeeze():
vec = squeeze(yourMatrix);