How can I get a two-dimensional contour line graph from Wavelet Time-Frequency analysis?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Navid
el 12 de Nov. de 2023
Comentada: William Rose
el 18 de Nov. de 2023
Hi, How can I obtain a visualizing scalogram similar to that shown in Figure 1 using Wavelet Time-Frequency analysis?
Figure 1:
0 comentarios
Respuesta aceptada
William Rose
el 16 de Nov. de 2023
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 comentarios
William Rose
el 18 de Nov. de 2023
@ Navid, YOu are welcome. Good job on the wavelet transform. Best wishes for success in your work.
Más respuestas (0)
Ver también
Categorías
Más información sobre Time-Frequency Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!