Concatenate nested cell array in one
Mostrar comentarios más antiguos
Hello matlab community,
how do I concatenate arrays with different sizes into one dimensional array:
Example
dblArrayX{1}{1} = [12;15];
dblArrayX{2}{1} = 13;
dblArrayX{3}{1} = [16;17;19];
unknown method leads to
newArray{1} = [12;15;13;16;17;19]
I need the method for this newArray without loops.
6 comentarios
Stephen23
el 26 de Mayo de 2020
"Concatenate multi dim array..."
None of your arrays are "multi dim".
Mate D
el 26 de Mayo de 2020
Nested cell arrays: your examples shows a cell array that contains cell arrays that contain other arrays. That is nesting.
You usage of "multi dim" for nested cell arrays sounds a bit like some other languages which have to resort to nesting of lists to try and mimic any kind of matrix or ND array, but MATLAB natively supports actual ND arrays:
Rik
el 26 de Mayo de 2020
Can you edit your question so it contains the actual shape of your data?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!