How to draw multiple constant lines?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yasuyuki Hamanaka
el 29 de Mayo de 2021
Comentada: Cris LaPierre
el 21 de Feb. de 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 comentarios
Respuesta aceptada
Cris LaPierre
el 29 de Mayo de 2021
Could you provide more details about what you mean by 'it didn't work'?
xline([1,2,3]);
xlim([0 5])
2 comentarios
Cris LaPierre
el 21 de Feb. de 2023
Yes. The ability to include a vector of inputs to xline and yline was added in R2021a.
Más respuestas (1)
Yasuyuki Hamanaka
el 29 de Mayo de 2021
Editada: Yasuyuki Hamanaka
el 29 de Mayo de 2021
3 comentarios
Ver también
Categorías
Más información sobre Entering Commands en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
