MATLAB Answers

Merging of cell data .

1 view (last 30 days)
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 19 Jul 2014
a ={ [2] [3] [4] [5] [6]}
b=str2double(strjoin(cellfun(@num2str,a,'un',0),''))
  10 Comments
azizullah khan
azizullah khan on 19 Jul 2014
Thanks... conversion from char to string is required?

Sign in to comment.

More Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!