How to change the color of a graph only in a particular section?

1 次查看(过去 30 天)
i have data like;
1 24.71 2 16.28 3 15.247 4 7.7337 5 11.85 6 16.58 7 17.88 8 14.477 9 9.5245 10 17.648 11 19.519 12 13.126 13 9.1243 14 8.324 15 15.337 16 11.886 17 13.626 18 17.718 19 19.189 20 13.586 and i want to plot this data in such a manner that for 1 1o 5 is of different color, 6 to 10 is of different color and so on...

回答(1 个)

Swarooph
Swarooph 2017-7-27
This answer might be useful.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by