필터 지우기
필터 지우기

How can I get a two-dimensional contour line graph from Wavelet Time-Frequency analysis?

조회 수: 3 (최근 30일)
Hi, How can I obtain a visualizing scalogram similar to that shown in Figure 1 using Wavelet Time-Frequency analysis?
Figure 1:

채택된 답변

William Rose
William Rose 2023년 11월 16일
Here is an example:
fs=1000; % sampling rate (Hz)
t=(0:1000)/fs; % time vector for x (s)
x=chirp(t,50,1,300)+chirp(t,350,1,75); % x= sum of up-chirp and down-chirp
% next: compute STFT
[s,f,t1]=stft(x,fs,'FrequencyRange','onesided','FFTLength',64,'Window',hann(64));
contour(t1,f,abs(s)) % plot contours of STFT
colorbar
Good luck.
  댓글 수: 2
Navid
Navid 2023년 11월 17일
편집: Navid 2023년 11월 17일
Dear William Rose,
I want to express my gratitude for the guidance you provided. I followed your example and extended it to wavelet transform, as shown below:
[cfs,f] = cwt(x,fs);
contour(t,f,abs(cfs).^2);
colorbar
Thank you for your time and consideration.
Sincerely,
Navid
William Rose
William Rose 2023년 11월 18일
@ Navid, YOu are welcome. Good job on the wavelet transform. Best wishes for success in your work.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by