Dear MatLab comunity,
I have a problem in changing color on a single or multiple bars in a normal and easy bar graph.
I tried the following:
%% Load Data
RMSD_UDP = load('rmsf_UDP.dat');% Assign variables
n = RMSD_UDP(:,1); %number of residue
x_UDP = RMSD_UDP(:,2); %RMSF for given residue
%Figure
figurehold ontitle('RMSF UDP');w1 = 0.5; b = bar(n,x_UDP,w1)b.FaceColor = 'g';b.CData(2,:) = [.5 0 .5];b.CData(44,:) = ['k'];xlabel('Residue');ylabel('RMSF');xlim([0 364])ylim([0 5])
It doesn't work but I don't know if it's the MatLab version (R2017a). I tried it on one of the latest ones and it didn't work either. there must be some detail i am not seeing.
Any idea?
Have a nice day,
Alex
Best Answer