Histogram and sound amplitude

조회 수: 2 (최근 30일)
TESFAW
TESFAW 2014년 8월 16일
댓글: Image Analyst 2014년 8월 16일
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
TESFAW
TESFAW 2014년 8월 16일
10Q! I know that yes!
but what x and y actually represent for sound is my question
my opinion is
for x amplitude (pressure variation),
for y number of samples in that amplitude range
I am not sure
plz correct me

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2014년 8월 16일
x is like time, and y is like amplitude or signal voltage.
  댓글 수: 1
Image Analyst
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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by