필터 지우기
필터 지우기

How to plot contour lines showing 95% confidence interval on surface plot?

조회 수: 22 (최근 30일)
Prajkta Kallurkar
Prajkta Kallurkar 2020년 4월 30일
답변: Kareem Abunawwas 2020년 9월 16일
Hi,
I am usng cwt to perform wavelet transform on my data. I am using surface command to plot the wavelet power (example is in Fig. 1 or top figure). I want to plot contour lines on this plot to show the region of wavelet power within 95% confidence interval.
I need suggestion on:
  1. How to calculate 95% confidence interval of wavelet power? The cwt returns a matrix of wavelet power which is a n-by-m array of complex numbers. n is the length of frequency vector and m is the length of time vector.
  2. How to plot a contour or line on the surface plot which will show the area that is within this 95% confidence interval? Example of what I need is in Fig. 2 or bottom figure. The white lines are the contours. I have drawn them manually here to show an example.
Thanks in advance.
  댓글 수: 2
darova
darova 2020년 4월 30일
Try this trick
% A and B your matrices you comparing
C = A - B;
C1 = (C-min(C(:)))/(max(C(:))-min(C(:)));
contour(X,Y,C1,[.95 .95])
Prajkta Kallurkar
Prajkta Kallurkar 2020년 5월 1일
편집: Prajkta Kallurkar 2020년 5월 1일
I am not comparing any data. I only have one matrix, which consists of wavelet coeeficients.
I tried it without C = A-B; it did not help.

댓글을 달려면 로그인하십시오.

답변 (1개)

Kareem Abunawwas
Kareem Abunawwas 2020년 9월 16일
it'll automatically show the 95% confidence interval, so it shoud be:
wt( your time series data)
you can also use wtc(v1,v2) to show the coupling btw two variables.
Nisreen

카테고리

Help CenterFile Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by