-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhighpass.m
More file actions
executable file
·26 lines (24 loc) · 1.02 KB
/
highpass.m
File metadata and controls
executable file
·26 lines (24 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% HIGHPASS() function
%
% Eliminate low-frequency component in signal
% This filter was designed using the MATLAB filter design tool
% which can be accessed by typing fdatool at command line.
%_______________________________________________________________
% Arguments:
% V = vector to be filtered
%_______________________________________________________________
% Returns:
% F = filtered vector
%_______________________________________________________________
% (c) 2003 Witold J. Lipski. Please feel free to copy
% and/or modify this code. Questions/Comments: wjl3@pitt.edu
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function F = highpass(V)
%Define filter coefficients
%IIR Elliptic filter: fs=2000Hz, fstop=1Hz, fpass=15Hz, Astop=45dB, Apass=1dB
%Filter created using MATLAB filter design tool
Num = [0.8705, -1.7410, 0.8705];
Den = [1.0000, -1.9525, 0.9544];
%filter data
F = filter(Num, Den, V);