How to extract data out of coi of wcoherence?
조회 수: 8 (최근 30일)
이전 댓글 표시
How to ignore data out of coi (data outside white dashed lines) and just quantify high magnitiude data discarding coi data? ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1161223/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1161223/image.jpeg)
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!