How can I incrementally plot multiple Rectangles in a [X Y Width Height] field?

1 vue (au cours des 30 derniers jours)
Su
Su le 22 Jan 2020
Commenté : Su le 23 Jan 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

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 22 Jan 2020
Modifié(e) : KALYAN ACHARJYA le 22 Jan 2020
for i=1:10
PED_fld=[132+i 210-i 75 80]
rectangle('position', PED_fld); %PED
hold on;
end
  5 commentaires
KALYAN ACHARJYA
KALYAN ACHARJYA le 23 Jan 2020
I have no data
plot(ExtractedX, ExtractedY);
Su
Su le 23 Jan 2020
Is there a possibilty of the rectangle figure not being 4 dimesional and a flat incremental plot as in the picture i drew

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Networks dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by