Filter löschen
Filter löschen

How to arrange data in cell array

1 Ansicht (letzte 30 Tage)
Muhammad Shaiful Bahri
Muhammad Shaiful Bahri am 18 Nov. 2019
Beantwortet: Walter Roberson am 19 Nov. 2019
I have an assignment to done. Which is i want to arrange this code.
code =
1×30 cell array
Columns 1 through 9
{'A 004'} {'A 011'} {'A 012'} {'A 019'} {'A 020'} {'A 024'} {'A 031'} {'A 032'} {'A 039'}
Columns 10 through 18
{'A 040'} {'A 044'} {'A 048'} {'A 049'} {'A 051'} {'A 052'} {'A 056'} {'A 059'} {'A 060'}
Columns 19 through 27
{'A 064'} {'A 068'} {'A 069'} {'A 071'} {'A 072'} {'A 079'} {'A 080'} {'A 084'} {'A 091'}
Columns 28 through 30
{'A 092'} {'A 099'} {'A 100'}
Into this. dimension (5x6)
{'A 004'} {'A 011'} {'A 012'} {'A 019'} {'A 020'} {'A 024'}
{'A 031'} {'A 032'} {'A 039'} {'A 040'} {'A 044'} {'A 048'}
{'A 049'} {'A 051'} {'A 052'} {'A 056'} {'A 059'} {'A 060'}
{'A 064'} {'A 068'} {'A 069'} {'A 071'} {'A 072'} {'A 079'}
{'A 080'} {'A 084'} {'A 091'} {'A 092'} {'A 099'} {'A 100'}
Is it possible?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 19 Nov. 2019
reshape(code, 6, []).'

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by