Merging of cell data .

3 ビュー (過去 30 日間)
azizullah khan
azizullah khan 2014 年 7 月 19 日
コメント済み: azizullah khan 2014 年 7 月 19 日
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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by