フィルターのクリア

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);
  1 件のコメント
Ahmed Hassaan
Ahmed Hassaan 2012 年 3 月 11 日
Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by