Hey,
It seems like the problem with the way you decleared it. It generates a row vector and not a coloumn one. Try,
x=[0;0;0;651;240;175;180;196;231;327];
histogram(x)
Or,
y = transpose(x)
histogram(y)
This sets the axis right! Hope this is what you were looking for!