Dc off-set Analysis - Maatlab code

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Hzaqa
Messages
15
Reaction score
0
Hi,

I am trying to use Matlab to analyse this raw signal by introducing Dc-offset analysis:
380131722.png


I used the following code :
a = [1 , -0.98]; b = [1,-1];
y = filtfilt(b,a,x);
figure
plot(y)

And the result :

308346109.png



But, I am trying to get a final result similar to the last graph,
Can you please tell methe exact code to achieve this:

812232241.png


Thank you very much
 

Attachments

  • 11.png
    11.png
    5.1 KB · Views: 447
Physics news on Phys.org