Effacer les filtres
Effacer les filtres

How to arrange data in cell array

1 vue (au cours des 30 derniers jours)
Muhammad Shaiful Bahri
Muhammad Shaiful Bahri le 18 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?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by