Merging of cell data .

3 visualizaciones (últimos 30 días)
azizullah khan
azizullah khan el 19 de Jul. de 2014
Comentada: azizullah khan el 19 de Jul. de 2014
a =
[2] [3] [4] [5] [6]
a is of type cell want output of type cell like
out= [23456]
please send me general code for any order of a...and/or if the number consist of sentence.
thanks in advance.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 19 de Jul. de 2014
a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))
  10 comentarios
Azzi Abdelmalek
Azzi Abdelmalek el 19 de Jul. de 2014
'23' is not a number, it's a string.
v={'a' '23' 'c'}
out=[v{:}]
azizullah khan
azizullah khan el 19 de Jul. de 2014
Thanks... conversion from char to string is required?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by