MATLAB: Changing the colour of lines on a graph

colorgraph

Best Answer

Try this:
if i == 6
plot(x,y,'r', 'MarkerSize', 10, 'LineWidth', 2); % Plot marker in red.
else
plot(x,y,'k');
end