MATLAB Need help with Matlab GUI – how to refresh/ redraw?

  • Thread starter NikTuz
  • Start date
Hello:

Could you possibly help me. I am writing a fairly simple GUI. The callback for “Start” button does the following:

1) Clears the current plot displayed in an Axis object
2) Calculates data for a new plot
3) Plots the new plot in Axes object from 1)

I need 1) to take place instantly, i.e. before 2) because 2) takes lots of time and I don’t want the old plot to be displayed while 2) is running. That’s the sequence I put it in the callback, but in practice the Axes objects get cleared only after 2) is done. Is there any way to refresh the Axes object before the callback is completed?

Thanks in advance,
Nik
 

Want to reply to this thread?

"Need help with Matlab GUI – how to refresh/ redraw?" You must log in or register to reply here.

Physics Forums Values

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top