How to create a sine wave in MATLAB?
sine = dsp. SineWave creates a sine wave object that generates a real-valued sinusoid with an amplitude of 1, a frequency of 100 Hz, and a phase offset of 0. By default, the sine wave object generates only one sample. sine = dsp.
How do you smooth a sine wave in MATLAB?
Use the Savitkzy-Golay filter with order 3 or 5. It will smooth it right out. Post your data if you want a demo. As you know, the sine wave can be estimated as a Taylor series so with enough terms and the proper window size in the Savitzky-Golay filter you should be able to get a reasonable sine wave out.