drawing specific histogram for errors.

1 次查看(过去 30 天)
%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
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
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 个)

类别

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