How to arrange data in cell array

2 ビュー (過去 30 日間)
Muhammad Shaiful Bahri
Muhammad Shaiful Bahri 2019 年 11 月 18 日
回答済み: Walter Roberson 2019 年 11 月 19 日
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 Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by