Update axes in Matlab GUI
Afficher commentaires plus anciens
Hey guys I´ve got a question. I have a m-File called Test-Gui.m In this m file I have a simple loop
global x
x=0;
for k=1:1000
x=x+1;
pause(0.001)
end
With this small loop I want to draw a plot in my GUI (Test_GUI.m) and update this plot everytime with the new value for x.
function axes1_CreateFcn(hObject, eventdata, handles)
global x
plot(x,x^2,'r');
I have tried drawnow() but it doesn´t work at all. Do someone know any possibility to update my figure in the GUI with the changing variable x.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!