How to draw multiple constant lines?
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yasuyuki Hamanaka
am 29 Mai 2021
Kommentiert: Cris LaPierre
am 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 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 29 Mai 2021
Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 Kommentare
Cris LaPierre
am 21 Feb. 2023
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!