Dc off-set Analysis - Maatlab code

AI Thread Summary
The discussion focuses on using MATLAB for DC-offset analysis of a raw signal. The user shares their initial code for filtering a signal using the `filtfilt` function but expresses a desire to achieve a specific final result resembling a provided graph. They seek guidance on the exact code needed to replicate that desired output. The conversation emphasizes the need for precise coding techniques in MATLAB to manipulate and analyze signal data effectively.
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: 403
Physics news on Phys.org
Up
Up
UP
 

Similar threads

Back
Top