resize cell in different dimension

Antworten (1)

James Tursa
James Tursa am 14 Sep. 2017
Bearbeitet: James Tursa am 14 Sep. 2017

1 Stimme

Assuming you mean you want to reshape the cell array itself, and not the contents of the cell array:
mycell = your 20x1 cell array
result = reshape(mycell,10,2);
Or if you wanted the results arranged differently in the rows, then maybe this is what you need:
mycell = your 20x1 cell array
result = reshape(mycell,2,10).';

2 Kommentare

komal bharti
komal bharti am 14 Sep. 2017
i want first 10 data in in first row and last 10 data in second row .
result = reshape(mycell,10,2).';

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Data Types finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 14 Sep. 2017

Kommentiert:

am 14 Sep. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by