Filtering a very noisy plot

1 view (last 30 days)
Christian Tsobanoglou
Christian Tsobanoglou on 16 Feb 2021
Answered: Dongyue on 18 Nov 2022
Hello! I am trying to apply a filter to filter the following force plot. I have tried many like lowpass but I haven't got any to work because I am just not good at matlab. Do you have an idea about how to do it. Maybe I should do a curve that follows the tops of the plot?

Answers (1)

Dongyue
Dongyue on 18 Nov 2022
Hi Christian,
A simple example to create a lowpass filter is shown below. Hope this will be helpful:
signal_original = rand([1,1000]);
plot(signal_original)
hold on
signal_lowpass = signal_original;
signal_lowpass(signal_lowpass>0.5) = 0.5;
plot(signal_lowpass)
hold off
Best,
Dongyue

Community Treasure Hunt

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

Start Hunting!