make a bar graph that spaces and colors 2 those bars differently in matlab in matlab

main.m
% Sample data for the bar graph
data = [10, 20, 15, 25, 12];

% Creating a bar graph with different colors and spacing
bar(1:length(data), data, 'barWidth', 0.4) % Adjust barWidth to change the spacing
colormap(summer(length(data))) % Using colormap to set different colors for each bar
287 chars
7 lines

gistlibby LogSnag