Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Dc off-set Analysis - Maatlab code

  1. Nov 28, 2012 #1
    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
     

    Attached Files:

    • 11.png
      11.png
      File size:
      9 KB
      Views:
      37
  2. jcsd
  3. Nov 30, 2012 #2
    Up
    Up
    UP
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Dc off-set Analysis - Maatlab code
  1. Matlab codes (Replies: 2)

  2. Matlab code (Replies: 0)

  3. Latex Code (Replies: 4)

Loading...