The script that you have used is accurate for the most part. I would suggest using
>> hold all
in place of 'hold on'. Using the HOLD ALL command once, ensures that all the bars of the bar plot have different colors.
As a sample script, you could try the following:
>> y = [75.995,91.972,105.711];
>> figure;
>> hold all;
>> bar(1,y(1),0.4,'g');
bar(2,y(2),0.4,'m');
bar(3,y(3),0.4,'b');