Matlab如何显示x,y坐标

发布于 2024-09-08 06:43:50 字数 353 浏览 2 评论 0原文

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

    x = 12;
    y = 54;
    plot(x,y,'+ b'); % this show only the "+" symbol. How to show the both coordinate and the "+"

替代文本 http://www.freeimagehosting.net/image.php?1dcb46de7a.jpg< /a>

How to show both x,y coordinate mapped on image?

    x = 12;
    y = 54;
    plot(x,y,'+ b'); % this show only the "+" symbol. How to show the both coordinate and the "+"

alt text http://www.freeimagehosting.net/image.php?1dcb46de7a.jpg

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

还不是爱你 2024-09-15 06:43:50

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

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

This should do the trick (might need some adjustment of the coordinates):

text(x,y,['(', num2str(x), ', ', num2str(y), ')'])
[旋木] 2024-09-15 06:43:50

您可以使用此代码以 [x, y, f(x,y)] 形式显示任何数据或具有坐标的数据
https://www.mathworks.com/matlabcentral/fileexchange/72970-display-data-in-form-of-fxy-as-map-and-convert-to-matrix

you can use this code for displaying any data in the form of [x, y, f(x,y)] or data with coordinate
https://www.mathworks.com/matlabcentral/fileexchange/72970-display-data-in-form-of-f-x-y-as-map-and-convert-to-matrix

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文