Question
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.
Related Questions
Expert Answer
Prashant Kumar
PhD Expert
Answered Nov 20, 2025
please read about functions num2cell and mat2cell
eg:
out = num2cell(yourmatrix,1)
or
out = mat2cell(yourmatrix,2,ones(1,size(yourmatrix,2)))
Have a different question? Ask here