make a bar graph that spaces and colors 2 those bars differently in matlab in matlab
main.m
% Sample data for the bar graphdata = [10, 20, 15, 25, 12];
% Creating a bar graph with different colors and spacingbar(1:length(data), data, 'barWidth', 0.4) % Adjust barWidth to change the spacingcolormap(summer(length(data))) % Using colormap to set different colors for each bar