matrix to cell conversion

2 views (last 30 days)
Arun Kumar
Arun Kumar on 13 Aug 2020
Answered: madhan ravi on 13 Aug 2020
how to convert 768*8 matrix into 768 number of 8*1 cells using matlab
  1 Comment
Fangjun Jiang
Fangjun Jiang on 13 Aug 2020
couldn't figure it out using the examples in "doc mat2cell"?

Sign in to comment.

Answers (2)

David Hill
David Hill on 13 Aug 2020
newCell=mat2cell(yourMatrix,ones(size(yourMatrix,1),1));

madhan ravi
madhan ravi on 13 Aug 2020
num2cell(matrix, 1).'

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!