How to draw multiple constant lines?
26 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Yasuyuki Hamanaka
le 29 Mai 2021
Commenté : Cris LaPierre
le 21 Fév 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 commentaires
Réponse acceptée
Cris LaPierre
le 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 commentaires
Cris LaPierre
le 21 Fév 2023
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!