image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image 10Hz High Pass filter with Matlab Share It Thread Tools Search this Thread image
Old Nov5-09, 12:05 PM                  #1
leonpolou

leonpolou is Offline:
Posts: 1
10Hz High Pass filter with Matlab

Hi everyone,

here is the problem:
I am trying to reproduce a human finger while pressing a keyboard.
I am using a shaker and a fingertip made of foam rubber. To measure the force history, a force gage make a link between the fingertip and the shaker.
The fact is the curve has an offset and I try to know why.

A solution might be that we use the force gage at a 5.8Hz and that material is usully use with frequency upper than 10 Hz.
To solve that problem a basic solution would be to filter the signal recorded with an high pass filter.
Actually I really don't know how to do it.

here is my code on matlab
f=10; %Cut off frequency%
fs=42000; %resolution frequency%
w=f/(fs/2); % frequency normalized%
N=100; &filter order%
b=fir1(N,w,'high');
figure(1);
freqz(b,1,42000,fs); % we see how the filter look like%
y=fftfilt(b,X1(1:65536,2));
figure(2);
plot(X1(1:65536,1),y,'r',X1(1:65536,1),X1(1:65536, 2))


First, how do you think is it possible to make a 10Hz high pass filter with matlab

Second, if you have some idea to solve my problem while using other thing than filter the signal, that would be a pleasure for me.

Regards
jeremy
  Reply With Quote
Old Nov6-09, 12:43 PM                  #2
KLoux

KLoux is Offline:
Posts: 167
Re: 10Hz High Pass filter with Matlab

I'm not familiar with the MATLAB command fir1(), but here are some thoughts:

100 is a pretty high order for a filter. I would recommend starting with N = 1 and step up one order at a time until you get something you like. High orders might tend to distort your data very badly.

The cutoff frequency (as interpreted by the fir1 command) is likely to be in radians/sec, not Hz. Like I said, I have no experience with this, so you should check the documentation to be sure.

Hope this helps,

Kerry
  Reply With Quote
Old Nov9-09, 06:25 PM                  #3
trambolin

trambolin is Offline:
Posts: 227
Re: 10Hz High Pass filter with Matlab

you can use butter command.
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: 10Hz High Pass filter with Matlab
Thread Thread Starter Forum Replies Last Post
High Pass filter & Low Pass Filters features gimini75 Engineering, Comp Sci, & Technology 1 Nov17-08 09:46 PM
High Pass filter gimini75 Engineering, Comp Sci, & Technology 15 Nov14-08 12:42 PM
High-Pass Filter DefaultName Electrical Engineering 10 Feb13-08 04:18 PM
Matlab low pass filter blue_raver22 Math & Science Software 1 Oct8-04 03:00 AM
high pass filter blair321 Introductory Physics 0 Dec13-03 08:45 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image