How can i remove noise from graph with slope wave

1 view (last 30 days)
Hey,
i have got a graph that looked like the figure below.
I want to filtered it by using matlab but so far i didn't succseed beacuse there is a noise that can be in values of +5000 and can also be in values of 30
In addition to that could be noise in -5 but in the begging of the graph.
Any suggstions ?
Thanks!

Answers (2)

KALYAN ACHARJYA
KALYAN ACHARJYA on 6 Dec 2020
if you have certain threshold value, you can remove that from y data.
threshold_data=...??
idx=find(y>threshold_data)
y(idx)=[];
x(idx)=[];
%plot the data

Image Analyst
Image Analyst on 6 Dec 2020
Did you try calling rmoutlier() before calling polyfit() or however you did the "filter"?
If you need more help, attach your data and code to read it in.

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!