How to divide spectrogram in bands according to y-axis?

3 visualizaciones (últimos 30 días)
Jaya Sodhani
Jaya Sodhani el 23 de Jun. de 2022
Respondida: vidyesh el 20 de Nov. de 2024 a las 10:40
y=audioread('speech.wav');
subplot(2,3,1);
plot(y);
spectrogram(y,[],[],[],fs,'yaxis');
This code will help me to plot the spectrogram. I want to divide spectrogram into different bands according to frequency which is taken on y-axis. How I can do it?

Respuestas (1)

vidyesh
vidyesh el 20 de Nov. de 2024 a las 10:40
Hi Jaya,
The 'histogram' function should allow you to divide the spectrogram as desired.
h = histogram(y);
disp(h.Values);
A detailed explanation of the 'histogram' function and the properties of the object 'h' returned by the function is present in the below documentation pages
Hope this helps.

Categorías

Más información sobre Spectral Measurements en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by