Plot a row with different color
1 次查看(过去 30 天)
显示 更早的评论
I have a simple 10x2 matrix with random values, scattered in a plot
a=rand(10, 2)*10;
scatter(a(:, 1),a(:, 2))
Suppose somehow I got values of a row, without knowing which row exactly it is, is there a way to draw the plot again, but this time the certain row will be painted in a different color than the others?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!