File with a NaN (wavelet)

I have data every 10 minutes. The software I'm using (to generate the wavelet) does not accept lack of data in some time (the software does not run with NaN). Would you have any suggestions without having to share the data file?
Note: Time step must be constant. This is required by the software. Software: Cross wavelet and wavelet coherence
Example:
34.3167 10.2950
34.3208 NaN
34.3250 8.3275
34.3292 7.9050
34.3333 6.1225
34.3375 NaN
34.3417 2.7800
34.3458 1.0475
34.3500 -0.2650
34.3542 -1.4075
34.3583 -2.5825
34.3625 -3.5925
34.3667 NaN
34.3708 NaN
34.3750 NaN
34.3792 NaN
34.3833 NaN
34.3875 NaN
34.3917 -6.7925
34.3958 -6.8100
34.4000 -6.3875
34.4042 NaN
34.4083 -5.7900
34.4125 -5.5300
34.4167 -5.4625
34.4208 -5.6075
34.4250 -5.7350
34.4292 -5.8350
34.4333 NaN
34.4375 -5.8050
34.4417 -5.7425
34.4458 -5.2750
34.4500 -3.9725
34.4542 NaN
Thanks in advance

2 comentarios

Star Strider
Star Strider el 29 de Sept. de 2015
What MATLAB functions are you using?
student
student el 30 de Sept. de 2015
Editada: student el 30 de Sept. de 2015
I am using a cross wavelet and wavelet coherence toolbox for MATLAB. http://www.glaciology.net/wavelet-coherence

Iniciar sesión para comentar.

Respuestas (1)

James Tursa
James Tursa el 29 de Sept. de 2015

0 votos

To replace NaN values with 0's in a variable X:
X(isnan(X)) = 0;

Categorías

Más información sobre Wavelet Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 29 de Sept. de 2015

Editada:

el 30 de Sept. de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by