Introduction1 ECE 5650/4650 MATLAB Project 1 This project is to be treated as a take-home exam, meaning each student is to due his/her ownwork. The project due date is 4:30 PM Tuesday, October 18, 2011. To work the project you willneed access to MATLABand at minimum the signal processing toolbox.IntroductionThis first MATLAB DSP project will get you acquainted/reacquainted with MATLABand thenmove into the exploration of•Discrete-time signal generation •Sequence convolution and the convolution sum •Linear constant coefficient difference equations (LCCDEs) •The discrete-time Fourier transform (DTFT) It is the student’s responsibility to learn the very basics of MATLAB. There are many resources onthe internet. One such example is course notes available in PDF form, from http://www.eas.uccs.edu/wickert/ece1010/. A Quick MATLABReview Recall that MATLABstands for matrix laboratory, so it goes withoutsaying that MATLABis very efficient at doing matrix oriented numerical calculations. MATLABsupports many data types, but the two data types we will work with the most, are scalar numbers(real and complex), and matrices (real and complex). For our signal processing needs the matriceswe create will most often be vectors, that is matrices of dimension or . The defaultdata type for real and complex numbers is double precision. Complex numbers are handled trans-parently in MATLAB, so there is no need to worry about these details, for the most part. In fact,when MATLABstarts-up, it has both iand jdefined as , i.e., at the command window, asshown in Figure 1, enter>> jans = 0 + 1.0000iNote that if you use iand jfor something else, these definitions will be overwritten. The matrixspecialization of MATLABmeans that the most efficient programming requires vectorizing. This isan aspect of using MATLABthat most students master over time. Getting your code to work insome fashion is first and foremost. Writing tight code is something that requires practice.The Colon OperatorSuppose we wish to create a vector of time samples for s, with sample spacing of 0.01s.We enter at the command window>> t = 0:0.01:5;>> size(t)m11n1–t05

This
preview
has intentionally blurred sections.
Sign up to view the full version.