Numbering lines passing through centre of circle and located at 0,90,180,270 degrees

I have a circle of radius (say 5mm) and centre (say(0,0)). I have drawn 4 lines each at 90 degrees all passing trough centre of circle. I want to print numbers (1,2,3,4) at intersection points of line and clircle on the graph along with the lines. Please help

 Respuesta aceptada

axis([-2 2 -2 2]), axis equal
for i = 1:4, text(cos(pi/2*(i-1)), sin(pi/2*(i-1)), int2str(i)), end

Más respuestas (0)

Categorías

Más información sobre Animation en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Oct. de 2015

Comentada:

el 21 de Dic. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by