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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS