Labelling graphs/images with text() function

  • Thread starter Thread starter nyxynyx
  • Start date Start date
  • Tags Tags
    Function Text
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
nyxynyx
Messages
34
Reaction score
0
Hi, I'm plotting some circles in a 20x20 arrangement using the rectangle tool and I have to label each of the circle a number from 1 to 400. However, the following code does not do what i once, since i think i can only label with strings and not running numbers...

Code:
for i=1:400
    text(x_pos(i),y_pos(i),i)
end

What else can i try? Thanks!
 
Physics news on Phys.org
thnx f95toli this works!