This preview shows pages 1–3. Sign up to view the full content.
1 of 12
CARLETON UNIVERSITY
Department of Systems and Computer Engineering
SYSC 4405
Lab #1: Introduction to M
ATLAB
and S
IMULINK
for DSP
The lab is held in room AA507a of the Architecture Annex using M
ATLAB
and S
IMULINK
.
For Lab #1 no lab report is required, but you will still be graded on the lab. To receive full marks, you will
have to demonstrate to the TA or instructor that you know and understand the material in this lab for each
of the Instructor Verification points, as provided at the end of this lab manual. Copies of the Instructor Ver
ification Sheet will be made available in the lab.
You should be able to complete all of the Instructor Verification Sheet during the three hour lab time. If
your progress is slow and the lab takes you longer than your scheduled lab slot, then you must submit the
instructor verification sheet at the beginning of your next scheduled lab slot (i.e., at the beginning of your
Lab #2 time slot) after having a TA verify your completion of the lab.
1 Lab Overview
M
ATLAB
/S
IMULINK
will be used extensively in all the labs. The primary goal of this lab is to familiarize your
self with using both M
ATLAB
/S
IMULINK
for digital signal processing (DSP). Here are three specific goals for
learning M
ATLAB
in this lab:
1. Learn basic M
ATLAB
commands and syntax, including the help system.
2. Write and edit your own script files in M
ATLAB
, and run them as commands.
3. Learn a little about advanced programming techniques for M
ATLAB
, i.e., vectorization.
Here are three specific goals for learning S
IMULINK
in this lab:
1. Learn how S
IMULINK
models can be built for performing DSP.
2. Learn how to configure S
IMULINK
for simulating discretetime systems and filters.
3. Learn how to interface S
IMULINK
with M
ATLAB
for performing some basic filtering operations.
2 M
ATLAB
Primer
2.1 Getting Started
After logging in, you can start M
ATLAB
by doubleclicking on the M
ATLAB
icon or by selecting M
ATLAB
from
the START menu. The following steps will introduce you to M
ATLAB
programming.
(a) View the M
ATLAB
introduction by availabe by going to “
help/demos/matlab/basic matrix operations
”.
This short introduction will demonstrate some of the basics of using M
ATLAB
.
(b) Explore the M
ATLAB
help capability. Try the following (it is possible to force M
ATLAB
to display only
one screenfull of information at once by issuing the command “
more on
”)
help
help plot
help colon % a VERY IMPORTANT notation
help ops
help zeros
help ones
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document2 of 12
help signal/signal % help on DSP Toolbox (Matlab)
help dspblks/dspblks % help on DSP Blockset (Simulink)
help arith % help on arithmetic operators
help relop % help on relational operators
lookfor filter % keyword search
Note: The text following the % is a comment; it may be omitted.
(c) Run theM
This is the end of the preview. Sign up
to
access the rest of the document.
 Winter '09

Click to edit the document details