Borrar filtros
Borrar filtros

how to remove the remaining part of my plot

3 visualizaciones (últimos 30 días)
Lim Miso
Lim Miso el 9 de Dic. de 2015
Editada: Mike Garrity el 9 de Dic. de 2015
as you can see my attachment, i draw a moving box by using FOR and FILL.
The problem is that i can not reamove the remaining part of my box.
I hope remove the remains of the box.
  2 comentarios
Walter Roberson
Walter Roberson el 9 de Dic. de 2015
Nothing was attached?
Lim Miso
Lim Miso el 9 de Dic. de 2015
my mistake. This is my attachment.

Iniciar sesión para comentar.

Respuestas (1)

Mike Garrity
Mike Garrity el 9 de Dic. de 2015
Editada: Mike Garrity el 9 de Dic. de 2015
The function fill has a return argument. This is called a 'handle'. The handle has a delete method which you can call to get rid of an object you don't want in the picture any more.
Alternatively, you can use the handle to modify the object you've already created instead of deleting it and creating a new one. See the set function for how you would do that.

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by