%I have error values from the difference between measured value and true value. I need to show the errors in a histogram as the style of given picture. Numbers in the Y axe are the error values, number in the X axe are the measured frequency.
%for example;
errors=[0.1;0.01;0.2;0.22;0.25;0.30];
pointd_ids=[1;2;3;4;5;6];

 채택된 답변

Yoav Livneh
Yoav Livneh 2014년 7월 15일

0 개 추천

You can use the hist command. For example for the parameter DS:
[n xout] = hist(DS,100); 100 is an arbitrary number of bins
figure; plot(xout, n);
Type doc hist for more information.

댓글 수: 4

sermet
sermet 2014년 7월 15일
in hist command there is no any style like this. By the way what is the DS parameter?
Yoav Livneh
Yoav Livneh 2014년 7월 15일
DS is one of the parameters in your figure.
sermet
sermet 2014년 7월 15일
but how can I create this style, I cannot find this style in the doc hist.
Yoav Livneh
Yoav Livneh 2014년 7월 15일
Did you try pasting this into the command line? Maybe in the documentation they use different names for n and xout.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Histograms에 대해 자세히 알아보기

태그

질문:

2014년 7월 15일

댓글:

2014년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by