MATLAB Matlab low-pass filter implementation and transfer function

AI Thread Summary
The discussion centers around the challenge of removing noise from tactile vibration signals sampled at 5000Hz to isolate a clean sine wave. The goal is to use this sine wave, along with an amplitude-time graph of the test sample, to create a transfer function for the human finger. A user seeks assistance with MATLAB for this process, specifically in implementing filtering techniques. An example of a second-order Butterworth low-pass filter (LPF) with a 50Hz cutoff frequency is provided, demonstrating the use of MATLAB functions like "butter" and "filter" for signal processing. The user acknowledges uncertainty regarding the appropriate cutoff frequency due to difficulties in determining the signal's absolute frequency using FFT analysis. Overall, the discussion highlights the need for guidance in signal processing techniques within MATLAB to achieve the desired clean signal for further analysis.
philnev
Messages
2
Reaction score
0
Hey guys,

Basically, I have been doing some testing with regards to tactile vibrations (I know that isn't very electrical) and using a HET have developed several amplitude plots in the time domain. I've been sampling at 5000Hz and I want to remove the noise from my signals to leave me with a clean (hopefully!) sine wave. I then want to use this wave, along with another amplitude-time graph (basically a side profile of the sample used for testing) in order to produce a transfer function for the human finger. I undersrtand that Matlab can do this for me but I can't figure out how!

Sorry if I've posted this in the wrong area, can anyone help!?
 
Physics news on Phys.org
You don't say what type of filter or what cutoff frequecy etc that you require? I'll give you an example anyway. Below is an IIR implementation of a 2nd order Butterworth LPF with 50Hz cutoff frequency.

Code:
fs=5000;                    % Sample Freuency
fn=fs/2;                    % Nyquist Frequency
fc=50;                      % Desired Cutoff frequency (example)
[b,a]=butter(2,fc/fn);      % IIR Filter coefficients, b=num, a=denom
xf=filter(b,a,x);           % apply filter to x

BTW. "filter" is an inbuilt function whereas "butter" (and other filter implementations) usually come with a signal processing toolbox. Both are available with a standard installation of gnu octave.
 
Last edited:
I knew I would forget to add something! The cut-off frequency is a little vague to me at the moment as I have not been able to ascertain the absolute frequency of the signal through FFT. Thanks very much for your reply though, it definitely helps with matlab!
 

Similar threads

Replies
2
Views
2K
Replies
5
Views
6K
Replies
11
Views
3K
Replies
4
Views
2K
Replies
2
Views
6K
Back
Top