New Figure Without Using Guide

2 visualizaciones (últimos 30 días)
koko kinder
koko kinder el 28 de En. de 2012
How to create a new figure with axes without using GUIDE? I want to know the command that I should use for this? Could anyone help?

Respuesta aceptada

Walter Roberson
Walter Roberson el 28 de En. de 2012
fignum = figure();
axhandle = axes('Parent', fignum);
  2 comentarios
koko kinder
koko kinder el 29 de En. de 2012
Thanks Walter. I have one more question. I want to draw a line which is available in another function. How do I draw it in the same defined axes. I used the parent property as follows
l3=line([x0 x2],[y0 y2]);
set(l3,'Parent',mainax,'linewidth',l_wid,'color','b');
but it can't identify it because it is in another function. Is there anyway around this?
Walter Roberson
Walter Roberson el 30 de En. de 2012
http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.3F

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by