How to arrange data in cell array

2 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2019-11-19
reshape(code, 6, []).'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by