How can I update a plot on GUI ?
Mostra commenti meno recenti
Hi everyone.
I was trying to modify the plot of my GUI. The problem is : I plot a sine wave plot (T, Y), where T=to:1/(20*f):tf; And all value are given by an user through the GUI and executed by a Run button. Then, the user should be able to use a slider to modify the T (at Real Time) axes by
>xinput=set(handle.slider,'value')
>T=to:1/(xinput*f):tf;
Then plot it again on the GUI.
Thanks.
5 Commenti
Rik
il 26 Ago 2018
What have you tried so far? It sounds like you have the code already, so what is your question?
Synchro_mdn
il 26 Ago 2018
Image Analyst
il 26 Ago 2018
Yes, that's what I was assuming when I submitted the Answer below. What happened when you tried to do what I said? Or did you not even notice it?
Synchro_mdn
il 26 Ago 2018
Image Analyst
il 26 Ago 2018
It can go whenever you think you want to repaint/refresh the screen. Otherwise it will refresh only when it thinks it's not too busy. Usually when you're in a fast loop you want to put the drawnow inside the loop or else it might not repaint the screen until all the iterations have finished. If it works, can you Accept the answer below?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Graphics Performance in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!