cell2mat simple manipulation question
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, if x={'000','101.5'}; x2=cell2mat(x)% which is =000101.5
How can I get x2=[000 , 101.5]?
0 件のコメント
採用された回答
Sean de Wolski
2012 年 7 月 25 日
How about:
x={'000','101.5'};
x2=str2double(x)
or:
x3 = cellfun(@str2double,x)
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!