Dc off-set Analysis - Maatlab code


by Hzaqa
Tags: analysis, code, maatlab, offset
Hzaqa
Hzaqa is offline
#1
Nov28-12, 10:51 PM
P: 15
Hi,

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


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

And the result :




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



Thank you very much
Attached Thumbnails
11.png  
Phys.Org News Partner Science news on Phys.org
SensaBubble: It's a bubble, but not as we know it (w/ video)
The hemihelix: Scientists discover a new shape using rubber bands (w/ video)
Microbes provide insights into evolution of human language
Hzaqa
Hzaqa is offline
#2
Nov30-12, 09:23 PM
P: 15
Up
Up
UP


Register to reply

Related Discussions
Writing Finite Element Code for Structural Analysis Mechanical Engineering 2
MIPS Assembly Code - Convert instruction code to binary Engineering, Comp Sci, & Technology Homework 2
Recursion code for generating Gray Code in C Engineering, Comp Sci, & Technology Homework 1
Convert latex code to fortran code? Math & Science Software 1