<< Chapter < Page Chapter >> Page >

Question and comments

Questions or comments concerning this laboratory should be directedto Prof. Charles A. Bouman, School of Electrical and Computer Engineering, Purdue University, West Lafayette IN 47907;(765) 494-0340; bouman@ecn.purdue.edu

Introduction

The purpose of this lab is to illustrate the properties of continuous and discrete-time signals using digital computersand the Matlab software environment. A continuous-time signal takes on a value at every pointin time, whereas a discrete-time signal is only defined at integer values of the “time” variable.However, while discrete-time signals can be easily stored and processed on a computer,it is impossible to store the values of a continuous-time signal for all points along a segment of the real line.In later labs, we will see that digital computers are actuallyrestricted to the storage of quantized discrete-time signals. Such signals are appropriately known as digital signals.

How then do we process continuous-time signals? In this lab, we will show that continuous-time signalsmay be processed by first approximating them by discrete-time signals using a process knownas sampling. We will see that proper selectionof the spacing between samples is crucial for an efficient and accurate approximationof a continuous-time signal. Excessively close spacing will lead to too much data,whereas excessively distant spacing will lead to a poor approximation of the continuous-time signal.Sampling will be an important topic in future labs, but for now we will use sampling to approximatelycompute some simple attributes of both real and synthetic signals.

Be sure to read the guidelines for the written reports.

Matlab review

Practically all lab tasks in the ECE438 lab will be performed using Matlab. Matlab (MATrix LABoratory) is a technical computing environmentfor numerical analysis, matrix computation, signal processing, and graphics.In this section, we will review some of its basic functions. For a short tutorial and some Matlab examples click here .

Starting matlab and getting help

You can start Matlab (version 7.0) on your workstation by typing the command

matlab

in a command window. After starting up, you will get a Matlab window.To get help on any specific command, such as “plot”, you can type the following

help plot

in the “Command Window” portion of the Matlab window. You can do a keyword search for commands related to a topic by using thefollowing.

lookfor topic

You can get an interactive help window using the function

helpdesk

or by following the Help menu near the top of the window.

Matrices and operations

Every element in Matlab is a matrix. So, for example, the Matlab command

a = [ 1 2 3 ]

creates a matrix named “ a ” with dimensions of 1 × 3 . The variable “ a ” is stored in what is called the Matlab workspace. The operation

b = a .'

stores the transpose of “ a ” into the vector “ b ”. In this case, “ b ” is a 3 × 1 vector.

Since each element in Matlab is a matrix, the operation

c = a * b

computes the matrix product of “ a ” and “ b ” to generate a scalarvalue for “ c ” of 14 = 1 * 1 + 2 * 2 + 3 * 3 .

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Purdue digital signal processing labs (ece 438). OpenStax CNX. Sep 14, 2009 Download for free at http://cnx.org/content/col10593/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Purdue digital signal processing labs (ece 438)' conversation and receive update notifications?

Ask