Connect points using lines whose colors is stored in an array

2 views (last 30 days)
I have an Nx2 matrix that I want to plot with each row corresponding to one point. Now, the color of lines joining the points must be chosen from an (N-1)x1 matrix. Please let me know how I can do this.

Answers (0)

Community Treasure Hunt

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

Start Hunting!