フィルターのクリア

cell2mat simple manipulation question

1 回表示 (過去 30 日間)
Danielle Leblanc
Danielle Leblanc 2012 年 7 月 25 日
Hi, if x={'000','101.5'}; x2=cell2mat(x)% which is =000101.5
How can I get x2=[000 , 101.5]?

採用された回答

Sean de Wolski
Sean de Wolski 2012 年 7 月 25 日
How about:
x={'000','101.5'};
x2=str2double(x)
or:
x3 = cellfun(@str2double,x)

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