I need to leave values in an array in blank. NaN problem
Show older comments
Im working with data that should follow some restrictions, for example the water level in a tank is measured in % so it cannot be more than 100, however, due to measurement erros it can be the case that the measurement mark 120 for example. How should I work with this data if I don't want wrong data to mess up further statistic calculations?. Is it correct to leave the data in blank? and if so what should the condition: NaN? Thank you for your help!
Accepted Answer
More Answers (1)
Steven Lord
on 17 May 2018
0 votes
If you use NaN or missing (which for numeric arrays are the same thing) to represent the missing data in your data set, you can use some of the functions designed for handling missing data to remove, replace, or perform computations ignoring the missing data.
Categories
Find more on Multidimensional Arrays 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!