Convert cell into double
1 回表示 (過去 30 日間)
古いコメントを表示
{'22,1'}
{'22,1'}
{'21,8'}
{'22,0'}
I hae extrated those data from TXT file. I tried to use
% T.(i) = str2double(T{:,i});
no working
I tried to use
str2num(char({'21,8'}))
I want instead 21.8 and repeat the format for the whole colonn
0 件のコメント
回答 (1 件)
David Hill
2022 年 11 月 23 日
Try using the following.
m=readmatrix('yourData.txt','DecimalSeparator',',');
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!