How to draw multiple constant lines?
Show older comments
I want to draw multiple constant lines in a figure. I coded below using xline() and yline() refering Vertical line with constant x-value - MATLAB xline (mathworks.com). But it doesn't work. Would you tell me what is wrong?
xline([1,2,3]);
Accepted Answer
More Answers (1)
Yasuyuki Hamanaka
on 29 May 2021
Edited: Yasuyuki Hamanaka
on 29 May 2021
3 Comments
Cris LaPierre
on 29 May 2021
It works in R2021a, as you can see. What version of MATLAB are you using?
Yasuyuki Hamanaka
on 29 May 2021
Katherine Zheng
on 24 Feb 2022
I am using R2021a, but still have this issue. ?
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!