overlaying specific points on an imported image

25 views (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 27 Jun 2018
Edited: Walter Roberson on 28 Jun 2018
img = imread('peppers.png');
image(img); %display image
hold on
scatter([23; 118; 209], [74; 88; 133], 'r*'); %overlay some points
hold off
  7 Comments
Walter Roberson
Walter Roberson on 5 Jul 2022
please show your code for creating the underlay and the surf and any xlim ylim or alpha data manipulation

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by