Filter löschen
Filter löschen

transform 1x12 cell to 3x4 cell

1 Ansicht (letzte 30 Tage)
Alberto Acri
Alberto Acri am 23 Jun. 2023
Beantwortet: Dyuman Joshi am 23 Jun. 2023
Hi! I have a cell like this:
A = {'5','11','69','85','114','169','188','196','250','258','267','295'};
I want to transform it like this:
A = {'5','11','69','85';'114','169','188','196';'250','258','267','295'};

Akzeptierte Antwort

Dyuman Joshi
Dyuman Joshi am 23 Jun. 2023
A = {'5','11','69','85','114','169','188','196','250','258','267','295'}
A = 1×12 cell array
{'5'} {'11'} {'69'} {'85'} {'114'} {'169'} {'188'} {'196'} {'250'} {'258'} {'267'} {'295'}
A = reshape(A,4,[])'
A = 3×4 cell array
{'5' } {'11' } {'69' } {'85' } {'114'} {'169'} {'188'} {'196'} {'250'} {'258'} {'267'} {'295'}

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by