drawing specific histogram for errors.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sermet
am 15 Jul. 2014
Kommentiert: Yoav Livneh
am 15 Jul. 2014

%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];
0 Kommentare
Akzeptierte Antwort
Yoav Livneh
am 15 Jul. 2014
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 Kommentare
Yoav Livneh
am 15 Jul. 2014
Did you try pasting this into the command line? Maybe in the documentation they use different names for n and xout.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Histograms finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!