You are on page 1of 22

ConvolutionofSignalsin MATLAB

RobertFrancis August29,2011 August 29, 2011

ReviewofConvolution Review of Convolution

y (t ) x(t ) * h(t )

x( )h( t )d

Visual example copied from Wikipedia


9/12/2011

Review of Convolution ReviewofConvolution

Smith, http://www.dspguide.com/ch6/2.htm
9/12/2011

Generating Time Vectors in Matlab GeneratingTimeVectorsinMatlab

9/12/2011

Generate Square Wave GenerateSquareWave

9/12/2011

Plot Square Wave PlotSquareWave

9/12/2011

Adjust Magnitude and Replot AdjustMagnitudeandRe plot

9/12/2011

Nyquist Sampling Theorem SamplingTheorem


If a continuous time signal has no frequency Ifacontinuoustimesignalhasnofrequency componentsabovefh,thenitcanbespecified byadiscretetimesignalwithasampling by a discrete time signal with a sampling frequencygreaterthantwicefh.

9/12/2011

Define Nyquist Sampling Time Vector DefineNyquist SamplingTimeVector

9/12/2011

Generate Nyquist Sampling Square Wave GenerateNyquist SamplingSquareWave

9/12/2011

Plot Nyquist Square Wave PlotNyquist SquareWave

9/12/2011

Define Undersampled Time Vector DefineUndersampled TimeVector

9/12/2011

Generate Undersampled Square Wave GenerateUndersampled SquareWave

9/12/2011

Plot Undersampled PlotUndersampled

9/12/2011

ConvolutionWithLinearDecaySignal Convolution With Linear Decay Signal

9/12/2011

Linear Decay Signal LinearDecaySignal

9/12/2011

Plot of Convolutions PlotofConvolutions

9/12/2011

ConvolutionwithExponentialDecaySignal Convolution with Exponential Decay Signal

9/12/2011

Exponential Decay Signal ExponentialDecaySignal

9/12/2011

Plot of Convolutions PlotofConvolutions

9/12/2011

FFTofSignalsinMATLAB FFT of Signals in MATLAB


RobertFrancis August31,2011 August 31, 2011

ReviewofFourierTransform Review of Fourier Transform

The Fourier Integral

X(f )

x(t )e j 2ft dt

DFT (Discrete Fourier Transform)

X k xn e j 2kn / N , k 1,2,..., N
n 0

N 1

9/12/2011

You might also like