plot differant data in the same axes

1 visualización (últimos 30 días)
best16 programmer
best16 programmer el 1 de Mayo de 2017
Comentada: best16 programmer el 1 de Mayo de 2017
hi matlab community i'm working on a gui in matlab,and i have two push buttons each one of them plot in the same axe. how can i plot the data from the two buttons in the same axe without one graph erases the other. thank you for advance.

Respuesta aceptada

hmi amid
hmi amid el 1 de Mayo de 2017
You should use the command
hold on
Then all your plots will stay on the same axes. But if you want to clear the graph after a while you should put this before you draw a new plot:
hold off
  1 comentario
best16 programmer
best16 programmer el 1 de Mayo de 2017
thank you.should i use this even in matlab gui code with different button

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.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by