MATLAB Answers

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

조회 수: 15(최근 30일)
Su 22 Jan 2020 17:59
댓글: Su 23 Jan 2020 16:16
I want incremental rectangle plots on a (ExtractedX, ExtractedY) graph currently, I have...
PED_fld = [132 210 75 80]
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

로그인 to comment.

채택된 답변

KALYAN ACHARJYA 22 Jan 2020 18:09
편집: KALYAN ACHARJYA 22 Jan 2020 18:10
for i=1:10
PED_fld=[132+i 210-i 75 80]
rectangle('position', PED_fld); %PED
hold on;

  댓글 수: 5

표시 이전 댓글 수: 2
Su 22 Jan 2020 19:11
yes, I got this figure, but can it be plotted on the graph such as the picture I attatched in my response?
KALYAN ACHARJYA 23 Jan 2020 5:02
I have no data
plot(ExtractedX, ExtractedY);
Su 23 Jan 2020 16:16
Is there a possibilty of the rectangle figure not being 4 dimesional and a flat incremental plot as in the picture i drew

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by