Is it possible to plot a spectrogram of a wav file in just red color?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
sangeet sagar
il 6 Ago 2018
Modificato: sangeet sagar
il 8 Ago 2018

I know how to plot a spectrogram in different formats like jet, grayscale hsv etc. But I was wondering if its possible to plot a spectrogram of a wav file in just red colour or in green colour or in blue colour.
I have attached a screenshot to show an example. I made this by saving the original spectrogram in png format and converting it into Red, green and blue colour using usual image processing technique.
2 Commenti
Risposta accettata
Adam Danz
il 6 Ago 2018
Modificato: Adam Danz
il 6 Ago 2018
Couldn't you just create your own colormap that varies along one RGB column while the other two columns have a constant color such as black? Here's an example using the red axis.
colorMap = [linspace(0,1,256)', zeros(256,2)]
colormap(colorMap);
9 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Red in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
