Home > functions > device > filter_func > vb_online_lowpass_filt.m

vb_online_lowpass_filt   Linux PC, Linux AMD Opteron, Windows, Windows 32, Windows 64

PURPOSE ^

Highpass cut filter using Online lowpass filter

SYNOPSIS ^

function y = vb_online_lowpass_filt(x,Fs,Flow)

DESCRIPTION ^

 Highpass cut filter using Online lowpass filter

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    y = vb_online_lowpass_filt(x,Fs,Flow)
0002 % Highpass cut filter using Online lowpass filter
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 [Nch,T] = size(x);
0008 
0009 % Initialize lowpass filter
0010 [a, z] = vb_lowpass_init(Fs,Flow,Nch);
0011 
0012 % Online lowpass filtering
0013 y = zeros(Nch,T);
0014 
0015 for t=1:T
0016     z = vb_online_lowpass(a,x(:, t),z);
0017     y(:,t) = z;
0018 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005