Hola team. Regarduing the wavelet functions wchohere for my signal, when plotting this it provides an index stating 'Time(Index)'. This runs from 0 to 10,000 on the x-axis.
My signal is only 1000 data points long, therefore I confused as to why the x axis can be up to 10,000. Does anyone have any idea?
Code is:
x; %my signal1
y; %my signal2
figure; wcoherence(x,y,seconds(fs));
Gracias todos!

 채택된 답변

Deepak Gupta
Deepak Gupta 2020년 4월 23일

0 개 추천

Hi Ben,
wcoherence(x,y,seconds(fs));
This line has error. I am assuming fs is your samping rate. and then you are directly converting it to seconds which wcoherence takes as time.
you need to make it:
wcoherence(x,y,seconds(1/fs))
for correct calculations.

댓글 수: 3

Ben
Ben 2020년 4월 23일
That solved, thank you.
Do you know, is it possible to change the yaxis from period to frequency (Hz)?
Deepak Gupta
Deepak Gupta 2020년 4월 23일
Use wcoherence(x,y,fs)
welcome
Ben
Ben 2020년 4월 23일
Thank you!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Continuous Wavelet Transforms에 대해 자세히 알아보기

질문:

Ben
2020년 4월 23일

댓글:

Ben
2020년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by