
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This is lab manual for Digital Signal Processing course at COMSATS Institute of Information Technology, provided by Dr. Khalida Jaleel. It includes: Introduction, MATLAB, Simulink, Model, Designing, Dynamic, Control, Nonlinear, Systems, Library, Browser
Typology: Exercises
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























The first window thatpops up is the
Library
Browser
.
This is a library ofblocks that areavailable for puttinginto the Simulink blockdiagram.
Select “SimulinkHelp” from thehelp menu in thelibrary browser.Here you canfind tutorials,demos,information onavailable blocks,and so on.
Select “sources” from the library.Drag any block you want to useinto the model.
Select “sinks” from the library.Drag any block you want to useinto the model.
Change parameters underSimulation | ConfigurationParameters.
Set start andstop time for thesimulation here.
I often changefrom variable-stepto fixed-step to geta smoother-lookingsolution.
Note: numericalsolution usingode45!
Double click on the scope icon toopen up the viewer. You oftenhave to zoom out using thebinocular icon if the curve doesn’tfit in the default axes.
You can save data from the scope tothe workspace using the “Parameters”,
“Data History” tab.
Double click on any block tobring up a properties box.Here are the “sine wave”properties. If you don’t knowwhat something is… leave italone!!!
You can create a branch point ina signal line by holding down theCTRL key, and clicking on theline. A summer block can be found inthe “commonly used blocks”library, and in the “math” library.To change the shape of thesummer to rectangular, or to addadditional inputs or change thesign, double click on the summer.
You can flip a block over by right clickingand looking under “Format”, or by selectingit and typing CTRL-i
Under the “signal routing” library,
the MUX block can be used tobundle a group of signalstogether into a single line. The DEMUX block does the
reverse. This can be useful to:1.
Clear up clutter in acomplicated block diagram.
Send multiple signals to thesame scope; then bothsignals will be displayed onthe same plot.
x(t)=1-exp(-t)
Do In-Class Problem #2. It should be 2:20 by the end of the problem.
Here is an example of a closed-loop system
with an on-off controller. Notice the
oscillations in the response.