How can i remove noise from graph with slope wave

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)

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
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

Tags

Asked:

on 6 Dec 2020

Answered:

on 6 Dec 2020

Community Treasure Hunt

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

Start Hunting!