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

조회 수: 1 (최근 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에서 Networks에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by