Borrar filtros
Borrar filtros

regarding plot function

1 visualización (últimos 30 días)
SUDIP PODDAR
SUDIP PODDAR el 26 de Abr. de 2011
I am using guide. I have two figure say g1 & g2. In g1 i take two input from user. I also have a plot button in g1. I have an axes in g2. I want to plot(user input in g1) on axes of g2 by pressing plot button of g1. i also wants to redraw. How I will do that. Plz help me.

Respuesta aceptada

Matt Fig
Matt Fig el 26 de Abr. de 2011
If the axes in g2 is the only axes you have open, you could use:
plot(findall(0,'type','axes'),x,y)
This goes in the callback to the pushbutton.
If there is more than one axes open, you will have to do something else, like give the axes in g2 a tag, say 'myaxes' then using this in FINDALL.
axhandle = findall(0,'tag','myaxes');
plot(axhandle,x,y);
  1 comentario
SUDIP PODDAR
SUDIP PODDAR el 27 de Abr. de 2011
Thanks a lot Matt.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks 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