问题
I have some data which when plotted looks like the one shown in left on the picture attached. It has some kinks which I wish to delete and smooth-en to get a nice curve [shown on right].
Presently I manually delete the kinks and interpolate the deleted part by polynomial of high order [say 9]. Then I repopulate the deleted fragment and re-draw the curve. This takes a long time and I have quite a number of files to process.
Could you folks suggest an efficient way to do this ? [in MATLAB or some other way]
Thanks a lot !!
P.S.: Added one more plot for clarification above
回答1:
I think this is a simple low pass filtering problem like @thewaywealk suggests. Removing the kinks corresponds removing certain high frequencies in your signal. This can be achieved in matlab by the filter operation. Demonstrations are shown here on denoising a sinusoidal wave here.
来源:https://stackoverflow.com/questions/23462276/delete-kinks-and-smooth-curves