Combine the rows of an mxn cell array into a single mx1 cell array.
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
TastyPastry
el 29 de Sept. de 2015
Respondida: Stephen23
el 29 de Sept. de 2015
I have a cell array of a known number of columns but a variable number of rows.
For example, I might have a 2x3 cell: A = {'hi',1,2;'bye',3,'bob'}.
I'm trying to output a 2x1 cell: B = {{'hi',1 2};{'bye',3,'bob'}}.
I tried using cat(), to no avail. Any suggestions?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!