wavelet coherence index is incorrect

1 Ansicht (letzte 30 Tage)
Ben
Ben am 23 Apr. 2020
Kommentiert: Ben am 23 Apr. 2020
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!

Akzeptierte Antwort

Deepak Gupta
Deepak Gupta am 23 Apr. 2020
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 Kommentare
Deepak Gupta
Deepak Gupta am 23 Apr. 2020
Use wcoherence(x,y,fs)
welcome
Ben
Ben am 23 Apr. 2020
Thank you!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Wavelet Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by