Histogram of several parameters
조회 수: 6 (최근 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에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!