I have a 2x10 matrix. Would anybody know how I could convert it into a 1x10 cell array - so that each cell contains a 2x1 matrix? I'm new to matlab and would appreciate any help.
Prashant Kumar answered .
2025-11-20
out = num2cell(yourmatrix,1)
or
out = mat2cell(yourmatrix,2,ones(1,size(yourmatrix,2)))