matlab频域积分,matlab数值积分实现(时域&频域积分) | 学步园

本文探讨了从加速度数据计算位移时,时域积分与频域积分的差异。时域积分易受噪声影响,而频域积分能提供更好的位移估计。通过实例比较,显示频域积分在高频率信号和有噪声情况下表现更优,并提供了相关MATLAB代码示例。
摘要由CSDN通过智能技术生成

最近做有关加速度的数据处理,需要把加速度积分成位移,网上找了找相关资料,发现做这个并不多,把最近做的总结一下吧!

积分操作主要有两种方法:时域积分和频域积分,积分中常见的问题就是会产生二次趋势。关于积分的方法,在国外一个论坛上有人提出了如下说法,供参考。

Double integration of raw acceleration data is a pretty poor estimate for displacement. The reason is that at each integration, you are compounding the noise in the data.

If you are dead set on working in the time-domain, the best results come from the following steps.

1. Remove the mean from your sample (now have zero-mean sample)

2. Integrate once to get velocity using some rule (trapezoidal, etc.)

3. Remove the mean from the velocity

4. Integrate again to get displacement.

5. Remove the mean. Note, if you plot this, you will see drift over time.

6. To eliminate (some to most) of the drift (trend), use a least squares fit (high degree depending on data) to determine polynomial coefficients.

7. Remove the least squares polynomial function from your data.

A much better way to get displacement from acceleration data is to work in the frequency domain. To do this, follow these steps...

1. Remove the mean from the accel. data

2. Take the Fourier transform (FFT) of the accel. data.

3. Convert the transformed accel. data to displacement data by dividing each element by -omega^2, where omega is the frequency band.

4. Now take the inverse FFT to get back to the time-domain and scale your result.

This will give you a much better estimate of displacement.

说到底就是频域积分要比时域积分效果更好,实际测试也发现如此。原因可能是时域积分时积分一次就要去趋势,去趋势就会降低信号的能量,所以最后得到的结果常常比真实幅值要小。下面做一些测试,对一个正弦信号的二次微分做两次积分,正弦频率为50Hz,采样频率1000Hz,恢复效果如下

时域积分

89b2c0985aa28f03bf1ea55006bd8877.png

频域积分

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值