Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Matlab graphical objects (Patch)

1 回表示 (過去 30 日間)
Raldi
Raldi 2012 年 5 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi everyone, i need a bit help regarding the following situation. I am trying to write a small program that will be able to get the number and dimensions of some rectangles from the user and then randomly place them on a palette (lets say a bigger rectangle that will represent a map or workspace). But i want each rectangle to be like a unique object with its own properties that may change any time.

回答 (1 件)

Walter Roberson
Walter Roberson 2012 年 5 月 5 日
Yes, using patch() should work fine with that, and possibly even rectangle() would be fine for you.
  2 件のコメント
Raldi
Raldi 2012 年 5 月 5 日
Yes i know, but i would like a bit help on finding a way to define the right dimention, because i want them on cm.
Raldi
Raldi 2012 年 5 月 5 日
also will i be able in this way to treat each rectangle like a unique object, as i want to be able to calculate the distance between them so they dont overlap.

この質問は閉じられています。

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by