How to draw rectangle inside plot figure?
52 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mohsin Zubair
el 7 de En. de 2022
Comentada: Mohsin Zubair
el 7 de En. de 2022
I have a 6x6 plot like shown in picture with grid on, it has boxes numbering from 1-36,(boxes are just due to having grid on) now I wanna draw traingle on any boxes e.g 14,15, how can I do it, like how do I define the x,y cords and width height for rectangle correctly, any ideas?
1 comentario
Respuesta aceptada
Cris LaPierre
el 7 de En. de 2022
Rectangle or triangle? Title and image show a rectangle so going with that.
You could use the plot command and supply it with the (x,y) coordinates of your corners. See Ch 9 of MATLAB Onramp.
If you want to draw it, you could use drawrectangle
Más respuestas (0)
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!