How to draw multiple constant lines?
조회 수: 42 (최근 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!