No BSD License  

Highlights from
winsinc

4.5

4.5 | 2 ratings Rate this file 15 Downloads (last 30 days) File Size: 6.29 KB File ID: #8574
image thumbnail

winsinc

by alex sanchez

 

27 Sep 2005 (Updated 01 May 2006)

Applies a windowed sinc filter.

| Watch this File

File Information
Description

Applies a windowed sinc filter

USAGE:
   [xf,Rh,Fh] = winsinc(x,dt,fc,ns,ftype,fo)

DESCRIPTION:
Windowed Sinc Filter. This is a digital symetric non-recursive filter which can be Lowpass, Highpass, or Bandpass by using a windowed sinc function.Non-Recursive filters are based on convolving the input series with a weight function.Their advantage compared to recursive filters is that they are always stable and matematically simpler.Their disadvantage is that they may require a large number of weights to achieve a desired response.

INPUT VARIABLES:
   x = vector
   dt = Sampling Interval
   fc = Cutoff frequency
   ns = Width of filter
       (>>ns produces a steeper cutoff
       but is more computationally expensive)
       2*ns + 1 = Order of Filter, (Number of Filter Coef.)
   win = Window Type:
       'welch','parzen','hanning','hamming'
       'blackman','lanczos','kaiser'
   
   ftype = 'low', 'high' o 'pass'
   fo = Central Frequency (for bandpass only)

OUTPUT VARIABLES:
   xf = filtered vector
   Rh = Filter Response
   Fh = Frequencies for Filter Response

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
12 Aug 2008 Diego González

good

11 Mar 2010 Tom

This is a very useful function. Thank you very much.

One comment: wkeep is in the wavelet toolbox. I believe using

xf = conv(x,h,'same');

gives the same results as

xf = conv(x,h);
xf = wkeep(xf,N);

Please login to add a comment or rating.
Updates
01 May 2006

updates

Tag Activity for this File
Tag Applied By Date/Time
filter design alex sanchez 22 Oct 2008 08:00:55
filter analysis alex sanchez 22 Oct 2008 08:00:55
sinc filter alex sanchez 22 Oct 2008 08:00:55
nonrecursive alex sanchez 22 Oct 2008 08:00:55
welch alex sanchez 22 Oct 2008 08:00:55
highpass alex sanchez 22 Oct 2008 08:00:55
bandpass alex sanchez 22 Oct 2008 08:00:55
lowpass alex sanchez 22 Oct 2008 08:00:55
welch abdullah khan 14 Dec 2010 09:37:27

Contact us at files@mathworks.com