I want to Put a number in plot function
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
Risposta accettata
Image Analyst
il 11 Mar 2012
I'd use sprintf()
myText = sprintf('The number is %.2f', theNumber);
text(x, y, myText);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Surface and Mesh Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!