function H = DTFTfast(h,N)

% DTFTfast -- fast DTFT
%  Usage
%    H = DTFTfast(h,N)
%  Inputs
%    h      input coefficients
%    N      dimension (must be dyadic)
%  Outputs
%    H      the DTFT
%  Description
%    Computes the Fast Discrete Time Fourier Transform
%  Note
%    length(h) can be at most 2*N

HH = fft(h, 2*N+1); %myFFT(h,2*N);
H(1:N) = HH(N+1:2*N);
H(N+1:2*N+1) = HH(1:N+1);
