hello all how i can convert number which are stored in cell array in alphabet?
numbers12 = [3,6,12,1,1,3,26,20]
lettter={,,,,,}

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 6 月 2 日

0 投票

numbers12 ={3,6,12,1,1,3,26,20}
lettter=cellfun(@num2str,numbers12,'un',0)

1 件のコメント

Stephen23
Stephen23 2015 年 6 月 2 日
編集済み: Stephen23 2015 年 6 月 2 日
As the question gives a numeric vector, then arrayfun will also work:
>> X = [3,6,12,1,1,3,26,20];
>> arrayfun(@num2str,X,'un',0)
ans =
'3' '6' '12' '1' '1' '3' '26' '20'

サインインしてコメントする。

その他の回答 (1 件)

Shrirang
Shrirang 2015 年 6 月 2 日

0 投票

Hi , You can use num2str command. e.g. numbers12 = num2str(numbers12 ) so your number array in char Hope this helps you.

カテゴリ

ヘルプ センター および File 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