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

1 回表示 (過去 30 日間)
Su
Su 2020 年 1 月 22 日
コメント済み: Su 2020 年 1 月 23 日
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 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 1 月 23 日
I have no data
plot(ExtractedX, ExtractedY);
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 Center および File ExchangeNetworks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by