Update axes in Matlab GUI
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!