- why filter before resampling?
- what kind of filter are u using?
Reduce time with this
1 次查看(过去 30 天)
显示 更早的评论
hi all!
i've a filter that is used on the data, but there is lots of data! i am hoping to resample the data(ia take every 2nd point), and than filter it. the problem is that i only have half as many data points. how can i use spline on the filtered data to make it back to the original.
for example, say theres 1000 data points. i resample every other data point to have 500. i feed that data into filter, and have newdata. how can i use spline to fit back to 1000 data points? i tried resampling every 1/2 but that is no good.
any suggestions will be helpful
thank you!!
1 个评论
Azzi Abdelmalek
2012-8-19
编辑:Azzi Abdelmalek
2012-8-19
if you are using a filter to just remove eventual noise; and don't affect considerably your initial signal; then you have just to interpolate your 500 data. just respect Shanon theorem for sampling
回答(3 个)
Azzi Abdelmalek
2012-8-19
编辑:Azzi Abdelmalek
2012-8-19
example
x=0.2:0.02:10;y=sin(x) %signal with 500 points % sig
xi=0.01:0.01:10; % 1000 points
yi=interp1(x,y,xi,'spline') % interpolated signal yi for points xi
0 个评论
Jan
2012-8-19
It is a bad idea to omit half of the data before filtering, because the re-creation of these points by using a spline interpolation creates(!) noise again. In addition the interpolation and will take much more time than filtering the signal in its original rate. If the filtering needs too much time for you, try the faster C-Mex FEX: FilterM.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!