- How to Delete Rectangles with Loops: https://jp.mathworks.com/matlabcentral/answers/296175-how-to-delete-rectangles-with-loops
rectangle で描出した四角形を削除することができますか?
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Tsubasa Mawatari
el 5 de Sept. de 2018
Comentada: Tsubasa Mawatari
el 6 de Sept. de 2018
rectangleで一度描出した四角形を削除することはできますか?
0 comentarios
Respuesta aceptada
mizuki
el 5 de Sept. de 2018
はい、可能です。例えば以下のようなコードで四角形を描きます。
figure;
h = rectangle('Position',[1 2 5 6])
axis([0 10 0 10])
その後、rectangle のハンドル(図のプロパティと呼ばれる情報を保持しているオブジェクト)を delete 関数で消すことができます。
detele(h)
Más respuestas (0)
Ver también
Categorías
Más información sobre ラベルと注釈 en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!