Making plot markers distinct

Hello experts,
I have the following plot with markers. The markers for May, June, July and August are statistically significant while others are not. How do I make the significant makers distinct from the others for example, like using a different color?

 Accepted Answer

x = 1:11;
y = [4.89 4.68 4.54 4.62 4.63 4.95 5.24 5.32 5.21 5.17 5.08];
plot(x,y,'-o');
hold on
idx = 5:8;
plot(x(idx),y(idx),'ro');
xlim(x([1 end]));

Categories

Products

Release

R2021b

Asked:

on 4 Feb 2022

Commented:

on 6 Feb 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!