I want to Put a number in plot function

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.

댓글 수: 1

Ahmed Hassaan
Ahmed Hassaan 2012년 3월 11일
I just want to put a variable number in text()or plot()

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2012년 3월 11일

0 개 추천

I'd use sprintf()
myText = sprintf('The number is %.2f', theNumber);
text(x, y, myText);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by