I have a bar plot, which could be created with this code:
hplot = barh(data(:,1));
This plots all bars in the same color.
Now I want to plot the bars wih row numbers 1, 4 and 5 in red and all others in blue.
How could I achieve that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at this. There’s nothing ready to use directly.
http://www.mathworks.co.uk/support/solutions/en/data/1-1T6UHS/