Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. Sep 16, 2008 #1

    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,
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted

Similar Threads - Need help Matlab Date
Matlab Help needed to fix a matlab code Nov 8, 2017
Need help with integral Dec 23, 2015
Need help in MATLAB Oct 10, 2013
Need help plotting Fourier series in matlab Sep 24, 2013
Need help with Matlab's Mapping Toolbox Feb 10, 2013