Change the color of a line in a multilines plot when mouse over the particular line

10 views (last 30 days)
Lak Yen Nee
Lak Yen Nee on 20 Jun 2021
Answered: Vimal Rathod on 23 Jun 2021
Hi guys, does anyone know how to highlight a single line in a multilines plot when mouse over the particular line. My code showing in the picture only makes the whole plot(all the lines) change to black color instead of just one single line. Thank you.

Community Treasure Hunt

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

Start Hunting!