필터 지우기
필터 지우기

overlaying specific points on an imported image

조회 수: 7 (최근 30일)
Thishan Dharshana Karandana Gamalathge
댓글: 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?

채택된 답변

Walter Roberson
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
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...
but the surf plot is supposed to be like this...
Thanks, Abhilash
Walter Roberson
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 CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by