30-06-2012, 04:25 PM
Discrete-Time Signals in the Time Domain
Digital signal Processing laboratory using Matlab.pdf (Size: 1.03 MB / Downloads: 106)
Introduction
Digital signal processing is concerned with the processing of a discrete-time signal, called
the input signal, to develop another discrete-time signal, called the output signal, with
more desirable properties. In certain applications, it may be necessary to extract some key
properties of the original signal using specific digital signal processing algorithms. It is
also possible to investigate the properties of a discrete-time system by observing the output
signals for specific input signals. It is thus important to learn first howto generate in the time
domain some basic discrete-time signals in MATLAB and perform elementary operations
on them, which are the main objectives of this first exercise. A secondary objective is to
learn the application of some basic MATLAB commands and how to apply them in simple
digital signal processing problems.
Getting Started
The CD provided with this book contains all of the MATLAB programs and the partially
written reports for both the PC and the Macintosh computers. In particular, it includes
both PC and Macintosh versions of the MATLAB M-files of the first 10 exercises in folders
grouped by chapters and report documents written in MicrosoftWord in folders also grouped
by chapters. After the completion of a project of a laboratory exercise, you record in the
report of that exercise the answers to questions referring to this project at their designated
locations.
Generation of Sequences
The purpose of this section is to familiarize you with the basic commands in MATLAB for
signal generation and for plotting the generated signal. MATLAB has been designed to
operate on data stored as vectors or matrices. For our purposes, sequences will be stored
as vectors. Therefore, all signals are limited to being causal and of finite length . The steps
to follow to execute the programs listed in this book depend on the platform being used to
run the MATLAB.
MATLAB on the Windows PC
The program can be executed by typing the name of the program without .m in the Command
window and hitting the carriage return. Alternately, choose Open from the File menu
in the Command window and choose the desired M-file. This opens the M-file in the
Editor/Debugger window in which an M-file can be executed using the Run command
under the Tools menu.
MATLAB on the Macintosh
The program can be executed by typing the name of the program without .m in the Command
window and hitting the carriage return. Alternately, it can be copied into the EditorWindow
by using the Open M-File command on your screen and then choosing the Save and
Execute command on your screen.