Asked by John
on 30 Jul 2012

Hi there,

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.

Kind Regards

John

*No products are associated with this question.*

Answer by venkat vasu
on 30 Jul 2012

Edited by Walter Roberson
on 30 Jul 2012

X= reshape(1:20,2,10)' C = mat2cell(X, [1,10],[2,1]); celldisp(C);

Opportunities for recent engineering grads.

## 0 Comments