converting string data to numbers
2 views (last 30 days)
Show older comments
hi there, I've separated the oxygen data set from a matrix of other data sets (measurements)
to remove the blanks and now need to convert the string to integers. Is the following correct?
%removing the extra <missing> strings
%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?
Subhamoy Saha on 21 Mar 2020
Edited: Subhamoy Saha on 21 Mar 2020
Oxygen = cellfun(@str2num, Oxygen, 'UniformOutput',false)
Find more on String Parsing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!