フィルターのクリア

double to string in a cell

35 ビュー (過去 30 日間)
Vincent I
Vincent I 2013 年 6 月 17 日
Hi, is there an easier way to convert from double to string in a cell?
Thank you
Left = {num2str(variable1)
num2str(variable2)
num2str(variable3)
etc...}
set(handles.Left_Listbox,'String',Left)

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 17 日
編集済み: Azzi Abdelmalek 2013 年 6 月 17 日
A={1 2 12 25}
B=cellfun(@num2str,A,'un',0)
  4 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 6 月 17 日
your error message?
Vincent I
Vincent I 2013 年 6 月 17 日
I got it thank you by doing the following:
B = cellfun(@num2str,Left,'UniformOutput',false)

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

その他の回答 (1 件)

Evan
Evan 2013 年 6 月 17 日
編集済み: Evan 2013 年 6 月 17 日

カテゴリ

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