フィルターのクリア

convert double matrix to string

8 ビュー (過去 30 日間)
Bou
Bou 2014 年 3 月 16 日
コメント済み: Bou 2014 年 3 月 16 日
Hello,
I want to convert a double matrix to a matrix of individual cells with the number between parentheses. So I want to convert A into B.
A=
1 2 3
4 5 6
7 8 9
B=
'1' '2' '3'
'4' '5' '6'
'7' '8' '9'
Im quite new to matlab and not sure which function to use for this purpose.
Thanks in advance! Greetings Boudewijn

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 3 月 16 日
B=arrayfun(@num2str,A,'un',0)
  1 件のコメント
Bou
Bou 2014 年 3 月 16 日
thanks!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by