How to use bar function?

1 回表示 (過去 30 日間)
BN
BN 2020 年 3 月 31 日
編集済み: Adam Danz 2020 年 3 月 31 日
Hey all,
I have X= 6 and Y= 14. I want to have a plot like this: (x is blue and y is green)
I tried so many ways, All unsuccessful and gives me various errors.
If it's a matter, this is just for January. In the next step I want to have all months in one graph.
can anybody help me?
Thank you all.

採用された回答

Adam Danz
Adam Danz 2020 年 3 月 31 日
編集済み: Adam Danz 2020 年 3 月 31 日
See the Display Groups of Bars example in the documentation. If you have any problems setting that up, provide your data and code and I'd be glad to set things straight.
After the bar plot is set up you can set the month names along the xticks either by using datetick() or by changing the XTick and XTickLabel properties of the axes.

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by