How to extract data out of coi of wcoherence?

4 vues (au cours des 30 derniers jours)
Hashini Wanniarachchi
Hashini Wanniarachchi le 18 Oct 2022
Réponse apportée : Yash le 16 Fév 2025
How to ignore data out of coi (data outside white dashed lines) and just quantify high magnitiude data discarding coi data?

Réponses (1)

Yash
Yash le 16 Fév 2025
Try comparing the y coordinates at a given time stamp to the values present in the coherence matrix and coi vector.
Pseudocode of the same can be like:
% Wavelet coherence and cross-spectrum
[wcoh, wcs, period, coi] = wcoherence(x, y);
% Get the size of the coherence matrix
[rows, cols] = size(wcoh)
% Identify data points outside the cone of influence
coi_indices = zeros(rows, cols);
for i = 1:rows
for j = 1:cols
if wcoh(i,j) < coi(j)
coi_indices(i, j) = 1; % Data point outside the COI (mark that index)
end
end
end

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by