I want to Put a number in plot function
4 次查看(过去 30 天)
显示 更早的评论
hello ,
I drawn alot of hexagons shapes by for loop and it depends on the input ,I want to make in plot statement numbers for each hexagon can you help plz.
采纳的回答
Image Analyst
2012-3-11
I'd use sprintf()
myText = sprintf('The number is %.2f', theNumber);
text(x, y, myText);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!