필터 지우기
필터 지우기

Finding the Y values corresponding to histogram center

조회 수: 11 (최근 30일)
Dhanuja Elizabeth Thomas
Dhanuja Elizabeth Thomas 2016년 7월 4일
편집: José-Luis 2016년 7월 4일
Hi, I'm using the function [counts,centers] = hist(xxx,100) for histogram plot. Here centers gives the center value of each bin on X axis but I want its corresponding Y value. How can I find the Y value of each bin center of histogram ?

답변 (2개)

Walter Roberson
Walter Roberson 2016년 7월 4일
The Y value will be the counts value corresponding to the center you are interested in.

José-Luis
José-Luis 2016년 7월 4일
  댓글 수: 2
Dhanuja Elizabeth Thomas
Dhanuja Elizabeth Thomas 2016년 7월 4일
Sorry, I didn't get how it extracts the Y axis value of each bin center.
José-Luis
José-Luis 2016년 7월 4일
편집: José-Luis 2016년 7월 4일
What Walter said. The Y value is the number of values or N in histcounts(). I you want the frequency, divide by the total number of values.
You might want to have a look at ksdensity() as well.

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

카테고리

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