MATLAB: How to draw a perpendicular to a line from a point

perpendicular

I need to draw a perpendicular line from a point (x1,y1) to a line. How to do that?

Best Answer

I showed you how to plot a line starting with any point and for any angle and length of line in How to draw a tangent using a point and an angle? (link).