<< moc_fzero Matlab/Octave Compatibility toolbox moc_ifft >>

Matlab/Octave Compatibility toolbox >> Matlab/Octave Compatibility toolbox > moc_gaussian

moc_gaussian

Generate an n-point gaussian convolution window

Calling Sequence

w = moc_gaussian (n, a)

Description

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).

Authors


Report an issue
<< moc_fzero Matlab/Octave Compatibility toolbox moc_ifft >>