changing the location of num2str
2 次查看(过去 30 天)
显示 更早的评论
Hi, I am using the following to illustrate the index of the (x,y) location inside a polygon. text(x(i),y(i),num2str(i) With the above code I get the numbers exactly on the (x,y) point. Does someone know how to change that location?
0 个评论
采纳的回答
更多回答(1 个)
Walter Roberson
2017-1-11
text() offers horizontal and vertical alignment options so that you can say whether the text is to begin at that coordinates or end there or be centered there.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!