# How to convert cell of array containing cell of array (n×n) order into a Single cell of arrays (n×n) order??

1 vue (au cours des 30 derniers jours)
Richard Johnson le 30 Avr 2023
Hello,I Have been trying to convert a cell of arrays containing cell of arrays into a single cell(both of same order N×n). I tried using "Newcellarray = cellfun('func',Existing cell array);". However, the array is not been able to generate. Request if someone may guide for the above said problem. Thanks in advance. ;)
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (1)

KALYAN ACHARJYA le 30 Avr 2023
cell_1={3,4,5;7,8,9}
cell_1 = 2×3 cell array
{[3]} {[4]} {[5]} {[7]} {[8]} {[9]}
cell_2={13,14,15;17,18,19}
cell_2 = 2×3 cell array
{[13]} {[14]} {[15]} {[17]} {[18]} {[19]}
new_cell=[cell_1,cell_2]
new_cell = 2×6 cell array
{[3]} {[4]} {[5]} {[13]} {[14]} {[15]} {[7]} {[8]} {[9]} {[17]} {[18]} {[19]}
new_cell=[cell_1;cell_2]
new_cell = 4×3 cell array
{[ 3]} {[ 4]} {[ 5]} {[ 7]} {[ 8]} {[ 9]} {[13]} {[14]} {[15]} {[17]} {[18]} {[19]}
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

R2021b

### Community Treasure Hunt

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

Start Hunting!

Translated by