Register to reply

Dc off-set Analysis - Maatlab code

by Hzaqa
Tags: analysis, code, maatlab, offset
Share this thread:
Hzaqa
#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
Flapping baby birds give clues to origin of flight
Prions can trigger 'stuck' wine fermentations, researchers find
Socially-assistive robots help kids with autism learn by providing personalized prompts
Hzaqa
#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