Question #6297

The question is:9) Use the 'bar' function (see Matlab help) to generate a bar plot showing weight as a function of drug treatment for males and females. Label the plot.
I was just wondering how I can make 1 bar graph showing data for males and female?

Expert's answer

You can show two bars on one graph. use "hold on/off" function

plot(...)

hold on

plot(...)

....

hold off

plot(...)

hold on

plot(...)

....

hold off

## Comments

## Leave a comment