Strange Extra data points coming in Histogram

2 views (last 30 days)
Hi,
I have plotted an Histogram, but it is giving some extra data points at 0 levels. Can you help me out, why it is coming out.
X= [-3031.6 -2872 -2712.5 -2552.9 -2393.3 -2233.8 -2074.2 -1914.7 -1755.1 -1595.6 -1436 -1276.5 -1116.9 -957.3 -797.8 -638.2 -478.7 -319.1 -159.6 0 178.1 356.2 534.3 712.4 890.5 1068.6 1246.7 1424.8 1602.9 1781 1959.1 2137.2 2315.3 2493.4 2671.5 2849.6 3027.7 3205.8 3383.8 ]
Y=ones(39,3)
Then if i use bar(X,Y,'histc'), i get some blue crossed data points at the x axis. WHy is it so, from where these datapoints are coming ?
Please help...

Accepted Answer

Yao Li
Yao Li on 10 Apr 2013
try
bar(X,Y)

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!