Delete kinks and smooth curves

安稳与你 提交于 2019-12-11 07:18:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!