Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Lab Manual Signals and Systems

# Lab Manual Signals and Systems

Ratings: (0)|Views: 991 |Likes:

### Availability:

See more
See less

01/15/2013

pdf

Department of Computer Systems Engineering
The Islamia University of Bahawalpur
University College of Engineering andTechnology
Department of Computer Systems Engineering
Lab Manual
Signals and Systems
th
Semester – Computer Systems Engineering)
Lab Manual – Signals and SystemsMuhammad Hassan Idrees 08CS11 Page
1

Department of Computer Systems Engineering
Contents
Lab 1An Introduction to MATLABLab 2Using Built-in functions of MATLABUsing MATLAB HelpLab 3Plotting Graphs in MATLABLab 4Signal Generation and ProcessingProgramming and Signal Analysis in MATLABLab 5To generate a discrete time triangular waveTo generate a triangular waveTo draw the ramp functionLab 6Get help for the built-in function”sinc” and hence plot sinc functionPlot a rectangular functionFind and plot u[n]-u[n-5],where u[n] is a discrete time unit step signal.Lab 7Find the convolutions sum of user defined inputsFind impulse response and step response of the system described bythe difference equation
Lab Manual – Signals and SystemsMuhammad Hassan Idrees 08CS11 Page
2

Department of Computer Systems Engineering
Lab 1An Introduction to MATLAB
1. What is MATLAB:dicussion.
The name MATLAB is short for MATrix LABoratory. It is a commercial software package whose mainfunction is to perform calculations on matrices, row vectors and column vectors. It is widely used in bothindustry and academic institutions. It possesses many of the features of a high level, numerically orientedprogramming language, but in addition has a large collection of built-in functions for performing matrixand vector operations in a way that is very simple for the user. For example, to find the determinant of amatrix A one need only enter:det(A)MATLAB commands can be entered one line at a time, or the user can write programs of MATLAB codeand define his or her own functions. In this session, we shall only use the one-line-at-a-time “interpretive”mode for simplicity, but the regular user will find that the power of the package is considerably extendedby writing his or her own programs and functions.
2. Entering and quitting MATLAB
To enter MATLAB, simply double click on the MATLAB icon. To leave MATLAB and return to the PC’soperating systemsimply typequit
3. Creating and manipulating matrices and vectors
MATLAB works on matrices and vectors that may be real or complex. Variables do not have to be“declared”. Results can be displayed in a variety of different formats.Let us enter a row vector into the MATLAB workspace. Type in:v = [2 4 7 5]This creates a variable v whose current value is a row vector with four elements as shown. After pressing“return” the value of v will have been echoed back to you. To suppress the echo, one uses a semi-colonfollowing the command line. Thusw = [1 3 8 9];Creates another row vector w, but does not echo. To check that w has appeared in the MATLABworkspace, type,whoWhich will display all the variables in the MATLAB workspace, and to check the value of w simply typewOperations on row vectors can be best illustrated by some simple exercises.
Lab Manual – Signals and SystemsMuhammad Hassan Idrees 08CS11 Page
3

## Activity (7)

asimnaqvi2003 liked this
Aniruddha Ghosh liked this
aldozp1 liked this
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->