Merging of cell data .

6 次查看(过去 30 天)
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.

采纳的回答

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

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by