Borrar filtros
Borrar filtros

How to: Renew Graph / figure / GUI

3 visualizaciones (últimos 30 días)
Hello kity
Hello kity el 28 de Dic. de 2012
Hi
i have build a gui which plots some graphs. I can choose what I want to plot by a popup box (case1, case 2 etc). The problem is, for example case1 consits of 3 subplots, it plots 3 graphs. And case2 consists of a single graph. If i choose case 1 first, it plots 3 graphs, then afterwards if i choose case 2 it plots its single graph in the 3rd subplot.... instead of clearing the window and making a single plot.
i tried clf, cla but dont work. how can i fix this?
thank you

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 28 de Dic. de 2012
Editada: Azzi Abdelmalek el 28 de Dic. de 2012
Use
subplot(1,1,1)
  1 comentario
Hello kity
Hello kity el 28 de Dic. de 2012
yea why not create a subplot for a single graph :)
thank you, this worked

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by