overlaying specific points on an imported image
7 次查看(过去 30 天)
显示 更早的评论
Thishan Dharshana Karandana Gamalathge
2018-6-27
评论: Walter Roberson
2022-7-5
I use the imread command to import a .jpg image which has some data shown (suppose it is a part of a global map with locations of fires shown). Now I have to overlay another data set which are based on longitude and latitudes (suppose a scatter plot). How can do that?
0 个评论
采纳的回答
Walter Roberson
2018-6-27
编辑:Walter Roberson
2018-6-28
img = imread('peppers.png');
image(img); %display image
hold on
scatter([23; 118; 209], [74; 88; 133], 'r*'); %overlay some points
hold off
7 个评论
Abhilash
2022-7-5
While I am trying to plot a 2D surf() plot on a image, some of the data is not showing up on the map. Can someone help?
It comes up like this...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1055750/image.jpeg)
but the surf plot is supposed to be like this...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1055755/image.jpeg)
Thanks, Abhilash
Walter Roberson
2022-7-5
please show your code for creating the underlay and the surf and any xlim ylim or alpha data manipulation
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Geographic Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!