Obtain GPS coordinates from figure

조회 수: 13 (최근 30일)
Ahmed
Ahmed 2023년 9월 27일
편집: Dyuman Joshi 2023년 9월 27일
I am currently using the function Geoplot function to plot the coordinates of my robot live using the onboard GPS, I currently assign a target coordinate by manually writing down the coordinates in the matlab command window and i was wondering if there is a way to click on a location on the map of the geoplot function or any other map plotting function, that would enable the coordinates of that selected point to be assigned to a variable in my workspace
  댓글 수: 1
檮杌
檮杌 2023년 9월 27일
Can you elaborate your question? Wouldn't datatips for a geoplot work for you?

댓글을 달려면 로그인하십시오.

답변 (1개)

Dyuman Joshi
Dyuman Joshi 2023년 9월 27일
편집: Dyuman Joshi 2023년 9월 27일
Click on a point anywhere on the data plotted, that will generate a data tip.
Hold shift to select multiple data points at once.
Right click on the data tip and a drop-down menu will appear.
Select the "Export Cursor Data to Workspace" option (2nd last) and save the data with a variable name accordingly.
The saved data will be of the structure data type.

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by