Histogram of several parameters
5 次查看(过去 30 天)
显示 更早的评论
ZAFIMANDIMBY Mampiandra Ny Hanitra
2021-1-12
评论: ZAFIMANDIMBY Mampiandra Ny Hanitra
2021-1-12
Good morning all.
Can anybody helps me by giving a code for comparison histogram of several parameters in Matlab.
Attached is a result picture as example
Thank you very much
2 个评论
Raghav Gnanasambandam
2021-1-12
I guess you are asking about bar graph. Have a look at this - https://www.mathworks.com/help/matlab/ref/bar.html
采纳的回答
Raghav Gnanasambandam
2021-1-12
Say for example you have the data (count) as
Parameter A - 130, Parameter B - 50, Parameter C - 40, Parameter D - 20, Parameter E - 10
x = categorical({'Parameter A','Parameter B','Parameter C','Parameter D','Parameter E'});
y = [130,50,40,20,10];
bar(x,y)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Histograms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!