I have a GUI with one axes and a slider.
I wish to do the following:
- Plot a sinewave of a given frequency on the axes.
- Plot the same sinewave using different sampling frequencies using the slider on the same axes.
I am able to do the first step and second step separtely.
But the problem is in the second step. I want that the first plot remians intact while plotting the new sine waves using slider. But I want the slider to delete the pervious plot before ploting a new sine wave. The plot of first should be intact.
How to do this ??