Merging of cell data .
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
azizullah khan
am 19 Jul. 2014
Kommentiert: azizullah khan
am 19 Jul. 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.
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 19 Jul. 2014
a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))
10 Kommentare
Azzi Abdelmalek
am 19 Jul. 2014
'23' is not a number, it's a string.
v={'a' '23' 'c'}
out=[v{:}]
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!