MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   Matlab如何显示x,y坐标 (https://www.labfans.com/bbs/showthread.php?t=23640)

poster 2019-12-10 20:42

Matlab如何显示x,y坐标
 
如何显示映射在图像上的x,y坐标?

x = 12; y = 54; plot(x,y,'+ b'); % this show only the "+" symbol. How to show the both coordinate and the "+" [URL="http://www.freeimagehosting.net/image.php?1dcb46de7a.jpg"]替代文字http://www.freeimagehosting.net/image.php?1dcb46de7a.jpg[/URL]



[B]回答:[/B]

这应该可以解决问题(可能需要对坐标进行一些调整):

text(x,y,['(', num2str(x), ', ', num2str(y), ')'])

[url=https://stackoverflow.com/questions/3182644]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 01:11

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.