Changing color of plotting points according to number
5 ビュー (過去 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!