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

4 次查看(过去 30 天)
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

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-1-22
编辑:KALYAN ACHARJYA 2020-1-22
for i=1:10
PED_fld=[132+i 210-i 75 80]
rectangle('position', PED_fld); %PED
hold on;
end
  5 个评论
Su
Su 2020-1-23
Is there a possibilty of the rectangle figure not being 4 dimesional and a flat incremental plot as in the picture i drew

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by