MATLAB Answers

Sagar
0

cross correlation using 'xcorr' in the presence of NaN or missing values

Asked by Sagar
on 6 Aug 2015
Hi I am trying to calculate cross correlation of two time-series at different lags but my data have a lot of NaN values. When I calculate cross correlation as below, it gives all NaNs in the corln.
[corln, lags] = xcorr (ave_precp_india (:), aod_all (:, 1), 15);
I want to specify something like 'rows', 'pairwise' in calculating correlation so that NaNs are ignored. How can I specify 'rows', 'pairwise' option in xcorr?

  0 Comments

Sign in to comment.

Tags

0 Answers