- How to Delete Rectangles with Loops: https://jp.mathworks.com/matlabcentral/answers/296175-how-to-delete-rectangles-with-loops
rectangle で描出した四角形を削除することができますか?
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tsubasa Mawatari
am 5 Sep. 2018
Kommentiert: Tsubasa Mawatari
am 6 Sep. 2018
rectangleで一度描出した四角形を削除することはできますか?
0 Kommentare
Akzeptierte Antwort
mizuki
am 5 Sep. 2018
はい、可能です。例えば以下のようなコードで四角形を描きます。
figure;
h = rectangle('Position',[1 2 5 6])
axis([0 10 0 10])
その後、rectangle のハンドル(図のプロパティと呼ばれる情報を保持しているオブジェクト)を delete 関数で消すことができます。
detele(h)
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!