How to divide spectrogram in bands according to y-axis?
3 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
vidyesh
2024 年 11 月 20 日 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
1) histogram function - https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram.html#buhzm_z-1-nbins
2) histogram properties - https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.histogram-properties.html
Hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spectral Measurements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!