Home > freetb4matlab > signal > gaussian.m

gaussian

PURPOSE ^

% error: w = gaussian(n, a)

SYNOPSIS ^

function x = gaussian(n, w)

DESCRIPTION ^

% error: w = gaussian(n, a)
%
% Generate an n-point gaussian convolution window of the given
% width.  Use larger a for a narrower window.  Use larger n for
% longer tails.
%
%     w = exp ( -(a*x)^2/2 )
%
% for x = linspace ( (n-1)/2, (n-1)/2, n ).
%
% Width a is measured in frequency units (sample rate/num samples). 
% It should be f when multiplying in the time domain, but 1/f when 
% multiplying in the frequency domain (for use in convolutions).

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003