フィルターのクリア

How to extract data out of coi of wcoherence?

8 ビュー (過去 30 日間)
Hashini Wanniarachchi
Hashini Wanniarachchi 2022 年 10 月 18 日
回答済み: Shubham 2023 年 8 月 30 日
How to ignore data out of coi (data outside white dashed lines) and just quantify high magnitiude data discarding coi data?

回答 (1 件)

Shubham
Shubham 2023 年 8 月 30 日
Hey Hashini Wanniarachchi,
To extract the data points outside the region bounded by coi, you can simply compare the y-coordinates at a particular time stamp of the values present in the coherence matrix and coi vector.
The pseudocode could look like:
% Perform wavelet coherence analysis
[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
Hope this helps!

カテゴリ

Help Center および File ExchangeWavelet Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by