Draw a line
47 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Vibol TEAV
el 5 de Jun. de 2011
Respondida: Steven Lord
el 7 de Nov. de 2022
I'm new to Matlab, I wanna draw a simple line x=4, or y=9. Someone kindly help me?
0 comentarios
Respuesta aceptada
Matt Fig
el 5 de Jun. de 2011
line([4 4],[0 10],'color','b') % Blue line from (4,0) to (4,10)
line([0 10],[9 9],'color','r') % Red line from (0,9) to (10,9)
axis([0 10 0 10]) % Set the axis limits
You can do the same thing with the PLOT command.
Más respuestas (1)
Ver también
Categorías
Más información sobre Line Plots 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!