converting string data to numbers
1 回表示 (過去 30 日間)
古いコメントを表示
hi there, I've separated the oxygen data set from a matrix of other data sets (measurements)
i used
rmmissing(Oxygen)
to remove the blanks and now need to convert the string to integers. Is the following correct?
Oxygen= Measurements(:,1);
%removing the extra <missing> strings
Oxygen=rmmissing(Oxygen);
%Data converted to integers
Oxygen = cellfun(@str2num, Oxygen,'UniformOutput',false)
also, how do i determine the frequency of measurements for Oxygen for measurements that are taken over a 24-hour time period?
Thanks
0 件のコメント
回答 (1 件)
Subhamoy Saha
2020 年 3 月 21 日
編集済み: Subhamoy Saha
2020 年 3 月 21 日
Oxygen = cellfun(@str2num, Oxygen, 'UniformOutput',false)
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!