MATLAB: Draw a line parallel to another

lineparallelpoint

How can I draw a line that is parallel to another and passing thru 1 point on matlab? I have the graph only.. till now i made no hand calculations.. am trying to avoid the hand calculations.. any ideas please?
Thanks, Aya,

Best Answer

  • The imline command allows for drawing a line onto the original line in the image. Then obtain the slope of the created line and use this to draw a new line through the wanted point.
    If you explain, how your point is defined and what exactly "hand calculations" are, a more detailed answer is possible.