- How to Delete Rectangles with Loops: https://jp.mathworks.com/matlabcentral/answers/296175-how-to-delete-rectangles-with-loops
rectangle で描出した四角形を削除することができますか?
16 views (last 30 days)
Show older comments
Tsubasa Mawatari
on 5 Sep 2018
Commented: Tsubasa Mawatari
on 6 Sep 2018
rectangleで一度描出した四角形を削除することはできますか?
0 Comments
Accepted Answer
mizuki
on 5 Sep 2018
はい、可能です。例えば以下のようなコードで四角形を描きます。
figure;
h = rectangle('Position',[1 2 5 6])
axis([0 10 0 10])
その後、rectangle のハンドル(図のプロパティと呼ばれる情報を保持しているオブジェクト)を delete 関数で消すことができます。
detele(h)
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!