删除扭结和平滑曲线 [英] Delete kinks and smooth curves

查看:111
本文介绍了删除扭结和平滑曲线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些数据,在绘制时看起来像附件中左图所示. 我希望删除它的一些扭结并进行平滑处理,以获得漂亮的曲线(如右图所示).

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].

目前,我手动删除了扭结,并通过高阶多项式对删除的部分进行插值[比方说9].然后,重新填充已删除的片段并重新绘制曲线. 这需要很长时间,而且我要处理很多文件.

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.

你们可以建议一种有效的方法吗? [以MATLAB或其他方式]

Could you folks suggest an efficient way to do this ? [in MATLAB or some other way]

非常感谢!

P.S .:在上面又添加了一个图用于说明

P.S.: Added one more plot for clarification above

推荐答案

我认为这是一个简单的低通滤波问题,如@thewaywealk所示.消除扭结相当于消除信号中的某些高频.这可以在matlab中通过过滤操作来实现.示威活动显示在此处对正弦波进行消音.

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.

这篇关于删除扭结和平滑曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆