How to understand spectrogram function
Mostra commenti meno recenti
Hello, can someone explain please (in plain english as much as possible) what's the difference between:
1) [s,w,t] = spectrogram(x,window,noverlap,w) returns the spectrogram at the normalized frequencies specified in w.
and
2) [s,f,t] = spectrogram(x,window,noverlap,f,fs) returns the spectrogram at the cyclical frequencies specified in f.
maybe someone can provide a simple example.
THANK YOU
Risposta accettata
Più risposte (5)
Jonathan Grimbert
il 23 Mag 2018
1 voto
thanks Vidya Viswanathan for your answer. However I got a question on the X axis... How do you know it is in ms for the second spectrogram ?
Thanks for your answer
Zulfidin Khodzhaev
il 18 Dic 2018
0 voti
Is it possible to get rid of "colorbar", which is automatically there with "spectrogram" command ?
1 Commento
Pawan Sharma
il 12 Feb 2019
%% use this to get rid of the colorbar at the end of your plot syntax
colorbar off
Mohannad suleiman
il 27 Feb 2021
0 voti
dear vidya how can we show the (power / frequency ) in the figures
1 Commento
Aditya Ramesh
il 1 Dic 2021
colorbar off
This disables the colorbar
colorbar on
This shows the colorbar without the bar label (power/frequency)
Colorbar with the legend label is shown by default even if no colorbar properties are defined. SO basically write nothign after spectrogram(.......) to get what you want.
Christoph
il 25 Ago 2021
0 voti
You can also have a look here --> https://github.com/Christoph-Lauer/Sonogram
Lazaros Moysis
il 14 Mar 2023
Based on your comments and feedback, I want to understand, how could I compute the Spectrogram according to the Bark scale, which is
BandBarks = [20, 100, 200, 300, 400, 510, 630, 770, 920, 1080, 1270, 1480, 1720, 2000, 2320, 2700, 3150, 3700, 4400, 5300, 6400, 7700];
Categorie
Scopri di più su Time-Frequency Analysis in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

