Color Specific Points in a Meshgrid Matrix
1 次查看(过去 30 天)
显示 更早的评论
I am trying to color specific points/coordinates created in a meshgrid matrix, created below:
[LAT LON] = meshgrid(lat,lon);
a=LAT';
b=LON';
plot(a, b, 'o','MarkerEdgeColor','k','MarkerFaceColor','k');
axis([-18 18 -18 18]);
hold on
What I have so far plots all points black. The meshgrid creates a 51X51 matrix. How do I go about coloring all points in the plot red if b= 10th row, for example?
Thanks.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!