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

조회 수: 2 (최근 30일)
Jaya Sodhani
Jaya Sodhani 2022년 6월 23일
답변: vidyesh 2024년 11월 20일
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?

답변 (1개)

vidyesh
vidyesh 2024년 11월 20일
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.

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by