error in plotting histogram
6 ビュー (過去 30 日間)
古いコメントを表示
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
2 件のコメント
Amith Kamath
2011 年 11 月 4 日
You may need to elaborate a bit more about what A and b is, in the sense that b is not even a ordinal set! and hence scatter won't work, for a good purpose. Do you want to plot A, and label it with b?
採用された回答
Wayne King
2011 年 11 月 4 日
Hi, one thing you can do:
A=[45,90,68];
b = {'jan','feb','mar'};
bar(A)
set(gca,'xticklabel',b)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!