MATLAB: How to get rid of spikes in the data due to phase shift from 2pi to 0

spikes

I tried using medfilt1 which removed isolated spikes. But, the "long" spiked region between 310 and 320 seconds wouldn't improve.

Best Answer

See unwrap
Related Question