File with a NaN (wavelet)
7 views (last 30 days)
Show older comments
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 Comments
Answers (1)
James Tursa
on 29 Sep 2015
To replace NaN values with 0's in a variable X:
X(isnan(X)) = 0;
0 Comments
See Also
Categories
Find more on Signal Analysis 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!