How can I display a bar chart ?
1 回表示 (過去 30 日間)
古いコメントを表示
Mallouli Marwa
2019 年 6 月 18 日
コメント済み: Mallouli Marwa
2019 年 6 月 20 日
Hi
How can I display a bar chart like the attached one ?
Best regards.
0 件のコメント
採用された回答
Aravind Ravikumar
2019 年 6 月 19 日
3 件のコメント
Aravind Ravikumar
2019 年 6 月 19 日
x = [3 4;1.5 1.75;0.25 0.3];
bar(x,'hist');
legend('PZT','MFC');
set(gca,'xticklabel',{'20Hz','30Hz','40Hz'});
This code will produce bar graph like the attached image. gca will select the current axes and then you could specify the xticklabel for the bar graph.
その他の回答 (1 件)
the cyclist
2019 年 6 月 18 日
3 件のコメント
the cyclist
2019 年 6 月 19 日
I suggest you take a look at the MATLAB Plot Gallery, which has examples of lots of plot types, along with the code that produces them. This may save you time asking about everything small addition that you want, one at a time.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!