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