Info
This question is closed. Reopen it to edit or answer.
Need help : replacing missing and errorneous data and interpolating those the aforementioned data
1 view (last 30 days)
Show older comments
Hi all,
I'm just a beginner in Matlab and I'm trying to process some data in X & Y Coordinates. Occasionally, I get data that are either presented in 0 or erroneous data that repeat themselves over a couple of cells (these data can come in other numbers other than 173.8570, 170.4440 (see image)).
(1) How do I replace these '0' and 'erroneous data' into NaN in an automated manner (I've tried manually highlighting them and replacing them with NaN - it takes too long for a large data set)? (2) Say after successfully replacing them, how can I interpolate these NaN data with cubic spline function without augmenting the rest of the data? (I've tried to input the syntax "vq = interp1(x,v,xq,spline)", but I'm not sure how to as I'm not understanding the syntax)
If anyone could help me get going with the syntax, that'll be great. Cheers
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!