I want to Put a number in plot function
조회 수: 1 (최근 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에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!