Borrar filtros
Borrar filtros

how to concatenate all the cell values horizondally in matlab

13 visualizaciones (últimos 30 días)
navan
navan el 3 de Abr. de 2016
Comentada: navan el 3 de Abr. de 2016
I have a cell array
{[1;1;1] [2;2] [3;3;3;3] }
I want to convert the cell array into a single vector
[1,1,1,2,2,3,3,3,3]
Kindly help.

Respuesta aceptada

per isakson
per isakson el 3 de Abr. de 2016
Editada: per isakson el 3 de Abr. de 2016
One way
>> cac = {[1;1;1] [2;2] [3;3;3;3] };
>> cat( 1, cac{:} )'
ans =
1 1 1 2 2 3 3 3 3

Más respuestas (0)

Categorías

Más información sobre Cell 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!

Translated by