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

 Akzeptierte Antwort

Birdman
Birdman am 26 Nov. 2017
For instance:
line([2.5,11.5],[-4,-4])

5 Kommentare

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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Tags

Gefragt:

am 26 Nov. 2017

Kommentiert:

am 26 Nov. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by