Removing NaN's and interpolating missing data
Mostrar comentarios más antiguos
Hi all
I have a small problem with some data I'm trying to analyse.
I have some spreadsheet data which, in excel looks like this: (Google docs spreadsheet).
When I load this into MATLAB, it replaces the blanks with NaNs
What I need to do is remove the NaNs and replace them with values interpolated or extrapolated from the values around them, so that I can produce a surface plot using countourf. The first row and first column are the axes - they are horizontal and vertical positions respectively.
I'm a relative beginner to MATLAB, so although I've found some previous posts about how to replace NaNs and interpolate, I'm having some difficulty adapting those solutions to my specific problem.
Any help greatly appreciated.
Thanks Steve
Respuestas (2)
Titus Edelhofer
el 13 de En. de 2012
0 votos
Grzegorz Knor
el 13 de En. de 2012
0 votos
Take a look at this file:
1 comentario
Steve
el 13 de En. de 2012
Categorías
Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!