Scales at continuous WT and wcoher

조회 수: 3 (최근 30일)
Jakub
Jakub 2016년 2월 12일
답변: Jakub 2016년 2월 12일
Hello, I still cant quite understand what scales should I choose to examine my signal. Lets say sampling frequency of my signal is 2048Hz and I want to analyze frequencies "pseudofrequencies" rom 1Hz to 60Hz. What scales should I use? According to scal2freq function it would be 16:1048 a but according to Matlab tutorial it is:
dt = 1/2048;
NumVoices = 32;
a0 = 2^(1/NumVoices);
wavCenterFreq = 5/(2*pi);
minfreq = 20;
maxfreq = 500;
minscale = wavCenterFreq/(maxfreq*dt);
maxscale = wavCenterFreq/(minfreq*dt);
minscale = floor(NumVoices*log2(minscale));
maxscale = ceil(NumVoices*log2(maxscale));
scales = a0.^(minscale:maxscale).*dt;
And that gives completly different results. Thank you for help!

채택된 답변

Jakub
Jakub 2016년 2월 12일
Its the same. Error was in that in the second case scales must be devided by dt.

추가 답변 (0개)

카테고리

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