Borrar filtros
Borrar filtros

concatenate a double to a cell

2 visualizaciones (últimos 30 días)
Leyon
Leyon el 21 de Nov. de 2013
Editada: Azzi Abdelmalek el 21 de Nov. de 2013
This is probably a silly question but:
I have a 4164x7 cell and a 4164x1 double. I want to concatenate so as to get a 4164x8 cell. However, all my methods have come up nil (cat, vertcat and horzcat). I have even tried to transpose the array. Any help would be nice.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Nov. de 2013
Editada: Azzi Abdelmalek el 21 de Nov. de 2013
a={1 2 3;4 5 6}
b=[5 8 12]
out=[a;num2cell(b)]

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by