MATLAB: Error in plotting histogram

graphs

I have to plot histogarm , i have values
A=[45,90,68]
b=['jan','feb','mar']
i want to plot histogram,is it possible
i have seen matlab help and in google,but can find only for one values for x or y ,but not for this
can u tell how to process please
and for scatter plot i tried
scatter(A,B)
but not working

Best Answer

  • Hi, one thing you can do:
    A=[45,90,68];
    b = {'jan','feb','mar'};
    bar(A)
    set(gca,'xticklabel',b)