How to draw multiple constant lines?
24 views (last 30 days)
Show older comments
Yasuyuki Hamanaka
on 29 May 2021
Commented: Cris LaPierre
on 21 Feb 2023
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]);
0 Comments
Accepted Answer
Cris LaPierre
on 29 May 2021
Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 Comments
Cris LaPierre
on 21 Feb 2023
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
More Answers (1)
See Also
Categories
Find more on Interactive Control and Callbacks 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!