Documentation

fftcoeffs

Frequency-domain coefficients

Syntax

c = fftcoeffs(hd)

Description

c = fftcoeffs(hd) return the frequency-domain coefficients used when filtering with the dfilt.fftfir object. c contains the coefficients

Examples

This example demonstrates returning the FFT coefficients from the discrete-time filter hd.

% FFTCOEFS_EX Example code imported directly into documentation.

% Copyright 2010 The MathWorks, Inc.

%%
% ==============================================
% Documentation example from
% fftcoeffs reference page
% in function_fftcoeffs.xml

% begindocexample fftcoefs_ex
b = [0.05 0.9 0.05];
len = 50;
hd = dfilt.fftfir(b,len);
c=fftcoeffs(hd);
% enddocexample fftcoefs_ex




Was this topic helpful?