Histogram and sound amplitude
4 次查看(过去 30 天)
显示 更早的评论
Hi everybody!
I need help on histogram for sound data analysis
How can I interpret the X axis and y axis for the histogram plot of signal(sound)
For the code
plot(y);
hist(y,linspace(-1,1,51));
axis([-0.6,0.6,0,5000])
where y=wavread(file)
any help?
回答(1 个)
Image Analyst
2014-8-16
x is like time, and y is like amplitude or signal voltage.
1 个评论
Image Analyst
2014-8-16
There is no "x" in your code, just y. If you plot y the "x" axis is really "element number" and y is sound signal. If you plot the histogram, the "x" is the "y" bins (the y gets quantized), and the "y" is the counts, meaning the number of elements that have y values in the bin range. Each bin overs a different range of y, and the histogram counts up the number of elements in that range.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!