Lab 8- DFT - notes PDF

Title Lab 8- DFT - notes
Author Mehroz Hassan
Course English
Institution COMSATS University Islamabad
Pages 1
File Size 95.1 KB
File Type PDF
Total Downloads 35
Total Views 135

Summary

notes...


Description

The Islamia University of Bahawalpur University College of Engineering & Technology Department of Electronic Engineering Digital Signal Processing (ES-321)

LAB No.08 Discrete Fourier-Transform in MATLAB clc; close all; clear all; n=0:3; x=[1 1 1 1]; % define the signal M=1000; k=0:M; w=(pi/M)*k; X=x*(exp(-1j*2*pi/M).^(n'*k)); %Finding DTFT of X magX=abs(X); figure subplot(4,1,1); stem(n,x); grid on; xlabel('discrete time'); title('signal magnitude'); subplot(4,1,2); plot((k/M)*2,magX); grid on; xlabel('Frequency'); title('Magnitude of DTFT'); [Xk]=dft(x,4); %Finding DFT of X with N=4=L subplot(4,1,3); stem(abs(Xk)); grid on; xlabel('k'); title('Magnitude of 4 points DFT (N=L)'); x=[x,zeros(1,12)]; %padding zeros for N=16 points DFT [Xk]=dft(x,16); %Finding DFT of X with N=4*L subplot(4,1,4); stem(abs(Xk)); grid on; xlabel('k'); title('Magnitude of 16 points DFT (N=4L)'); %sampled frequency response is more clear in shape Xk=xn*WNnk;

Script for implementing the procedures described above and utilization of DFT function

f...


Similar Free PDFs