How to draw multiple constant lines?
30 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Cris LaPierre
2021-5-29
Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 个评论
Cris LaPierre
2023-2-21
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!