フィルターのクリア

using cellfun to convert text to double and vice-versa, help¡¡¡¡

1 回表示 (過去 30 日間)
Jules Ray
Jules Ray 2014 年 11 月 2 日
コメント済み: Jules Ray 2014 年 11 月 2 日
Hallo
i'm working with my text table and i proceeded to convert from string to double, using cellfun:
id={'ARAU'},{'BUCA'}; %original data input
name2=cellfun(@double,id,'uniformoutput',0);
65 82 67 79
66 85 67 65
code_shore=cell2mat(name2); %--- is a matrix of 4 columns
code_shore =====>??????
code_ shore is codified text into numbers.... how can i convert this numbers back to the original ARAU or BUCA cell string????
thanks

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 11 月 2 日
id={'ARAU'; 'BUCA'}; %original data input
name2=cellfun(@double,id,'uniformoutput',0)
out=cellfun(@char ,name2,'un',0)
  1 件のコメント
Jules Ray
Jules Ray 2014 年 11 月 2 日
wowo... that's speeeeeeed...
thanx a lot :P

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

その他の回答 (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