Hello Everyone, I need to pass a low pass filter in this plot and I can't find the best way to do that. Someone can help me? Thanks.
1 view (last 30 days)
Show older comments
Hello Everyone, I need to pass a low pass filter in this plot and I can't find the best way to do that. Someone can help me? Thanks.
I'm using this filter and I'm not getting any results
[b,a] = butter(8,0.1,'low');
y = filtfilt(b,a,pz);
2 Comments
Accepted Answer
More Answers (1)
Walter Roberson
on 12 Oct 2021
You are getting differences near the sharp edges.
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/764556/DATA.mat';
pz = readmatrix(filename, 'filetype', 'text');
[b,a] = butter(8,0.1,'low');
y = filtfilt(b,a,pz);
plot(pz, 'k.-', 'displayname', 'original');
hold on
plot(y, 'b+-', 'displayname', 'filtered');
hold off
legend show
xlim([6050 6199])
figure
plot(pz - y, 'displayname', 'pz-y')
legend show
2 Comments
Walter Roberson
on 12 Oct 2021
I am having difficulty at the moment figuring out how a vector of values might correspond to values from a point cloud, so I am having difficulty judging what kind of noise might be present or what an effective way of reducing it might be.
The only idea I have come up with so far is that you might possibly be scanning a linear structure with pits, such as for CDs.
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!