Changing color of plotting points according to number
조회 수: 4 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Walter Roberson
2023년 11월 28일
Create a small colormap
scatter(x, y, [], INDEX)
caxis([1, size(YourMap, 1)])
colormap(YourMap)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!