implementation of mean shift filtering for 1 dimensional array
2 次查看(过去 30 天)
显示 更早的评论
i wanted to implement mean shift filter on a 1 dimensional array data (sampled noisy square output from DAQ).
Pls find the attached file 'testdata' which has the data required for filtering.
Can any one help me in this regard?
0 个评论
回答(2 个)
Wayne King
2014-2-28
编辑:Wayne King
2014-2-28
You can just do
x = detrend(testdata,0);
Now compare:
subplot(211)
plot(testdata)
subplot(212)
plot(x)
Wayne King
2014-2-28
Shailendra, there is a function in the Signal Processing Toolbox peak2peak that will do that.
You do have some noise in your data so simply mean shifting the data will not get rid of that problem.
I recommend peak2peak() if you have access to it.
Otherwise, you're going to have do some lowpass filtering and then peak detection.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Digital Filter Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!