Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Filtering the data in matlab

Status
Not open for further replies.

roop123

Newbie level 3
Joined
Apr 12, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
helllo,

i am receiving data from a 2-D digital accelerometer..i am provided with a software that reads the accelerometer signal form parallel port and samples it at the chosen sampling rate .....and writes the tab separated text file .....file contains three columns: time,x,y....
after taking this file,i want to apply low pass filter on thia data....

but i am not getting that do i need to take FFT of this data ???also do i need to take iFFT after applying LPF????

please anybody help me out......

thanks
 

roop123

Newbie level 3
Joined
Apr 12, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Plzzz anyone reply...its urgent..

Thanks
 

atulbhatia

Newbie level 3
Joined
Apr 14, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
for filtering you can use filter command. If you want to see the output in terms of normalised frequency you can use freqz command. you can see the output by uisng following command where
x is the filtered data and fs is sampling frequency.
y=fft(x,512);
df=fs/512;
m=fftshift(abs(y));
p=unwrap(angle(y));
f = -(fs/2)+df:df:(fs/2);
plot(f,m1);title('magnitude');
 

roop123

Newbie level 3
Joined
Apr 12, 2008
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
Thanks fo rreplying...

but i wanted to know that why do we need to take fft and inverse fft.....
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top