Histogram of several parameters

6 vues (au cours des 30 derniers jours)
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 commentaires
Raghav Gnanasambandam
Raghav Gnanasambandam le 12 Jan 2021
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.

Connectez-vous pour commenter.

Réponse acceptée

Raghav Gnanasambandam
Raghav Gnanasambandam le 12 Jan 2021
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 commentaire
ZAFIMANDIMBY Mampiandra Ny Hanitra
Thank you very much. That is really what I want to get. It was really helpful.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by