Matlab GUI plot: Refersh input data and update plot

3 vues (au cours des 30 derniers jours)
Matt
Matt le 10 Mai 2013
I am working with Matlab GUI. I am having problem that the plots are not updated when i change the input data. My code is long but here is the plotting function i am using.
axes(handles.Diagram1) hold all for i=1:6:numel(t) plot(rn,E(i,:)/1000000)
end
The tag of the axis plot is "Diagram1!
Any Help is much appriciated!

Réponses (1)

David Sanchez
David Sanchez le 10 Mai 2013
Try to use "drawnow" right after the plot() command. A small pause also helps: pause(0.001)

Catégories

En savoir plus sur Graphics Objects dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by