How to draw multiple constant lines?
30 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Yasuyuki Hamanaka
il 29 Mag 2021
Commentato: Cris LaPierre
il 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 Commenti
Risposta accettata
Cris LaPierre
il 29 Mag 2021
Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 Commenti
Cris LaPierre
il 21 Feb 2023
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!