필터 지우기
필터 지우기

functions 'hist(x)' or 'histogram(x)' ?

조회 수: 11 (최근 30일)
Camila Hashimoto
Camila Hashimoto 2017년 4월 3일
댓글: Camila Hashimoto 2017년 4월 3일
Hi,
I had been working with histogram plots, I use the function 'hist(x)', but when I look for help the matlab support recommends that I use the function 'histogram(x)'. I tried to download the function 'histogram(x)', but I did not find a link for it. I use the version of matlab R2011b.
Does anyone know the difference between these functions? Thanks

채택된 답변

Adam
Adam 2017년 4월 3일
편집: Adam 2017년 4월 3일
Which help did you look in? You should always use the help for the version you have, easiest to access via e.g.
doc hist
If your version does not have the histogram function then the difference doesn't matter. It isn't a function to download by itself, it is just part of newer Matlab versions since R2014b so unless you upgrade to that version or later just ignore it.
histogram includes various improvements over hist and is the new recommended function. This page gives some details of the changes between the functions.
  댓글 수: 1
Camila Hashimoto
Camila Hashimoto 2017년 4월 3일
Thank you for made it clear ! I look for help in my version of matlab, but I found this link: https://www.mathworks.com/help/matlab/ref/hist.html ... then I got confused.
thanks ;)

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

추가 답변 (0개)

카테고리

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