How can I incrementally plot multiple Rectangles in a [X Y Width Height] field?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Su
el 22 de En. de 2020
Comentada: Su
el 23 de En. de 2020
I want incremental rectangle plots on a (ExtractedX, ExtractedY) graph currently, I have...
PED_fld = [132 210 75 80]
figure
plot(ExtractedX, ExtractedY);
rectangle ('position', PED_fld); %PED
This give me a rectangle spanning [132 210 75 80] or [X Y Width Height]
but I want multiple equally spaced rectangles in this range, not one
0 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 22 de En. de 2020
Editada: KALYAN ACHARJYA
el 22 de En. de 2020
for i=1:10
PED_fld=[132+i 210-i 75 80]
rectangle('position', PED_fld); %PED
hold on;
end
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!