I want to Put a number in plot function

4 visualizaciones (últimos 30 días)
Ahmed Hassaan
Ahmed Hassaan el 10 de Mzo. de 2012
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 comentario
Ahmed Hassaan
Ahmed Hassaan el 11 de Mzo. de 2012
I just want to put a variable number in text()or plot()

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 11 de Mzo. de 2012
I'd use sprintf()
myText = sprintf('The number is %.2f', theNumber);
text(x, y, myText);

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by