how to draw perpendicular line on angular line..
Mostrar comentarios más antiguos
how to draw perpendicular line on angular line..
Respuestas (2)
David Sanchez
el 12 de Nov. de 2013
You can use line and swap the Y-coordinate values to get the perpendicular line:
line([2 5],[3 7])
hold on
line([2 5],[7 3])
axis square
hold off
1 comentario
asmi
el 12 de Nov. de 2013
Image Analyst
el 12 de Nov. de 2013
0 votos
Why is this tagged Bresenham? Do you have a digitized "canvass" that you have to draw this on? If not, then the line() function will draw continuous lines with no gaps and you don't have to worry about Bresenham. If you have an image and you want to "burn it into" the image, then you could use Bresenham but you don't have to because imline() will do it for you.
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!