MATLAB: Sine wave change zero crossing and increase amplification

baseline correctiondetrendhigh pass filterMATLABmean centeringsine

Hi
I have attached a picture of a sine wave, can it be modified ie all centred around zero, all peaks and troughs the same size?
Any help would be appreciated.
David

Best Answer

First, use the fft function to do a Fourier transform to see what the signal frequency components are.
After that, it should be straightforward to design a highpass filter to eliminate both the D-C offset and baseline drift, so the result will be close to what you want.