How to set a horizontal line at one specific point on a plot?

 Accepted Answer

For instance:
line([2.5,11.5],[-4,-4])

5 Comments

2.5 is the starting point? Because when I set the starting point below zero the line doesn't appear
Yes it is starting point and below zero you can not see the line because your x axis starts at 0.01
I had to change that too eventually. Thank you very much.
Has the answer worked for you? If so, you can accept it.
Yes thank you. First time here. Didn't know.

Sign in to comment.

More Answers (0)

Tags

Asked:

on 26 Nov 2017

Commented:

on 26 Nov 2017

Community Treasure Hunt

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

Start Hunting!