add reference point with known x y coordinates on imagesc

17 ビュー (過去 30 日間)
Fikret Dogru
Fikret Dogru 2019 年 2 月 15 日
コメント済み: Cris LaPierre 2019 年 2 月 16 日
Hi all,
I need to help about adding point on imagesc plot. I need to add a point with known x and y values (coordinates). But I know the x and y values so I do not want to use ginput or datacursormode. Could we make manual position for datacursormode? I just want to show that point on figure as a 'dot' or '+'. Any help would be great. Thanks
Fikret

回答 (1 件)

Cris LaPierre
Cris LaPierre 2019 年 2 月 15 日
If you have the computer vision toolbox, use insertText.
If not, use the text function.
text(x,y,'+')
Just keep in mind that in an image, 0 for the Y axis is the top left corner instead of the bottom left.
  3 件のコメント
Cris LaPierre
Cris LaPierre 2019 年 2 月 16 日
Not familiar with that, but I wonder in the enu2ecef function in the mapping toolbox is helpful. I got there from this answer. If not, I'm afraid without more info I can't be of much help as I'm not familiar with this type of data.
Cris LaPierre
Cris LaPierre 2019 年 2 月 16 日
Looks like geodetic2enu might be helpful as well? For the spheroid, you could use
spheroid = wgs84Ellipsoid('km');
to specify the wgs84 geopgraphic units.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by