Dc off-set Analysis - Maatlab code

Click For Summary
SUMMARY

The discussion focuses on performing DC-offset analysis using MATLAB. The user implemented a filter with the code snippet `a = [1 , -0.98]; b = [1,-1]; y = filtfilt(b,a,x);` to process a raw signal. However, the user seeks guidance on achieving a specific final graphical output that resembles a desired result. The request emphasizes the need for precise code to replicate the expected outcome.

PREREQUISITES
  • Familiarity with MATLAB programming and syntax
  • Understanding of digital signal processing concepts
  • Knowledge of filter design and implementation in MATLAB
  • Experience with graphical data representation in MATLAB
NEXT STEPS
  • Research MATLAB's `filtfilt` function for zero-phase filtering techniques
  • Explore MATLAB's filter design functions to customize filter parameters
  • Learn about signal preprocessing techniques for DC-offset removal
  • Investigate MATLAB plotting functions to enhance graphical output
USEFUL FOR

This discussion is beneficial for MATLAB users, signal processing engineers, and researchers looking to analyze and visualize raw 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: 421
Physics news on Phys.org
Up
Up
UP
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K