필터 지우기
필터 지우기

I want to Put a number in plot function

조회 수: 1 (최근 30일)
Ahmed Hassaan
Ahmed Hassaan 2012년 3월 10일
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일
I'd use sprintf()
myText = sprintf('The number is %.2f', theNumber);
text(x, y, myText);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by