Changing color of plotting points according to number


I'm plotting an error with respect to the number of points used.
Now there are three different ways to comput the error, and I always plot the maximal error.
If the maximum is for computation 1, I want the dot in the plot to be red, for computation 2 it should be blue, etc.
How can I achieve this? My data is in a n x 2 matrix
Anusha Sridharan
Anusha Sridharan on 28 Nov 2023
Hi @Bar, we have moved your question to MATLAB Answers, where a wider support audience is available to help you:

Tags