Padding a cell array?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
L'O.G.
el 28 de Nov. de 2022
Respondida: Voss
el 28 de Nov. de 2022
How do you pad every other element of a cell array with a blank value thereby doubling the length of the cell?
0 comentarios
Respuesta aceptada
Voss
el 28 de Nov. de 2022
Maybe something like this:
C = {1 2 3 4};
C_new = cell(1,2*numel(C));
C_new(1:2:end) = C
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!