I would to be like this graph:
I have try like this but give me one bar for each algorithm, How can I add next each bar the results of 50 nodes?
node=100;
x = sort([energyConsumption_GR; energyConsumption_UGR; energyConsumption_CUC], 'descend');
hold on;
bar(1, x(1), 'FaceColor', '#0072BD', 'BarWidth', 0.2);
bar(2, x(2), 'FaceColor', '#D95319', 'BarWidth', 0.2);
bar(3, x(3), 'FaceColor', '#EDB120', 'BarWidth', 0.2);
ylabel('J');
title('Energy Consumption, # Node= 100');
set(gca,'XTick',[1 2 3]);
set(gca,'XTickLabel',{'GR','UGR','CUC'});
whitebg('white');
grid on;