MATLAB: Different colors in graph

color graphs

Does anybody know how I can add different colors to the graphs in the folowing loop: gjG below is an 11×8 matrix.
Aar = {'2011', '2012', '2013_1', '2014_1', '2014_s2', '2014_s5'};
nAar = length(Aar);
figure
hold on
for iAar = 1:nAar
plot(gjG(11,:,iAar));
legend((Aar),'location','NE','FontSize',10);
end
hold off

Best Answer

plot(gjG(11,:,iAar), 'Color', rand(1,3));