Histogram of several parameters

조회 수: 6 (최근 30일)
ZAFIMANDIMBY Mampiandra Ny Hanitra
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
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
ZAFIMANDIMBY Mampiandra Ny Hanitra
That link is also helpful. Thank you.

댓글을 달려면 로그인하십시오.

채택된 답변

Raghav Gnanasambandam
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)
  댓글 수: 1
ZAFIMANDIMBY Mampiandra Ny Hanitra
Thank you very much. That is really what I want to get. It was really helpful.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by