contfft - % the Fourier transform X(w) and the frequency...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function [X,w] = contfft(x,T); % CONTFFT [X,w] = contfft(x,T) % % Computes the Fourier transform of a continuous time signal % using the FFT. The input is the sampled continuous % time signal x and the sampling time T. The output is
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % the Fourier transform X(w) and the frequency vector w. % [n,m] = size(x); if n<m, x = x'; end Xn = fft(x); N = length(x); n = 0:N-1; n(1) = eps; X = (1-exp(-j*2*pi*n/N))./(j*2*pi*n/N/T).*Xn.'; w = 2*pi*n/N/T;...
View Full Document

This note was uploaded on 03/24/2010 for the course CENG 4331 taught by Professor Maryrandolph-gips during the Fall '09 term at UH Clear Lake.

Ask a homework question - tutors are online