How to draw multiple constant lines?
49 次查看(过去 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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!