Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

LABORATORY MANUAL

Computer Engineering Department

for the complete fulfilment of the requirements for the lab course of

Digital Signal Processing

Submitted by

Mohammad Salman | 49060

BS Computer 6th

Lab Instructor

Dr. Imran Qurashi


Associate Professor, Department of Electrical Engineering,
Faculty of Information & Communication Technology,
BUITEMS, Quetta.

Session Spring – 2022


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

LAB NO. 1
INTRODUCTION TO MATLAB & ITS BASIC COMMANDS
Lab Objectives:
 Introduction to MATLAB
 Basic commands of MATLAB

List of Equipment:
 Personal computer
 MATLAB software

Theory
MAT-LAB: Matrix Laboratory
I. MATLAB is a programming and numeric computing platform used by millions of
engineers and scientists
II. MATLAB combines a desktop environment tuned for iterative analysis and design
processes with a programming language that expresses matrix and array mathematics
directly. to
III. MATLAB toolboxes are professionally developed, rigorously tested, and fully
documented.
IV. MATLAB apps let you see how different algorithms work with your data. Iterate until
you’ve got the results you want, then automatically generate a MATLAB program to
reproduce or automate your work.
MATLAB capabilities
I. Data Analysis : Explore, Model And analyze data
II. Graphs : Visualize and explore data
III. Programming: create scripts, Functions, and classes
IV. External Language Interface: interface MATLAB with python, C/C++ and other language
V. Hardware: connect directly MATLAB with hardware
VI. develop algorithms: various A.I algorithm
VII. Parallel computing: perform large-scale computations and parallelize simulations using
multicore desktops and GPUs.

Procedure
First run the software.
Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

• Click on “new script” to create new editor file.


• Write your code in editor window.
• Click on save option to save the code in MATLAB file format.
• Now, click on run button to compile and run the code.
• The output can be seen in command window

MATLAB ENVIRONMENT
➢Command Window: This is the main area where commands can be entered at the
command line.

➢Work-Space: The workshop shows all the variables created and/or imported form files.

➢Command history: This window shows the repentantly used commands.

➢Current folder: The current folder shows which MATLAB folder you have been working
on.

➢Editor Window: This is a simple text editor where you can load, edit, write and save the
complete MATLAB program.

Fig.1: MATLAB dashbord


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Basic commands

Fig 2: basic commands

Fig 3: output

Fig 4: min and max function


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 5:output of min and max

Fig 6: mean, sum and product function

Fig 7: output mean, sum and product function


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 8: log function

Fig 9: trigonometric functions


Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

Fig 10: assigning variable

Conclusion
In this lab of DSP we have overcome with some basic commands in MATLAB and analyzed
the results

Rubrics
Student is Student can Student has Student has Student
Demonstration Absent
unable to understand followed constructed perfectly
Lab Manual Digital Signal Processing Name:Mohammad Salman
CMS ID: 49060

the provided implemented


follow the the
laboratory a working
provided instructions functional/
instructions model/ logic/
instructions to construct working
and familiar circuit/ block
properly. the schematic/
with the lab diagram/
The student fundamental model/
environment code and
can name the schematic/ block
(Trainer/ successfully
hardware or block diagram/
software/ executed the
simulation diagram/ code, and
IDE), but lab objective
platform, but code/ model have
cannot in Realtime
unable to on the successfully
implement or in a
implement protoboard/ executed the
on the simulation
anything trainer/ program/
platform environment
practically or simulation run circuit
practically and produced
on the software. on software
or on the the desired
software platform
software results
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Total Marks Instructor’s Signature

Correctly
drawn
Plagiarized Requirements Observations Appropriate
conclusion
content are listed and are recorded computations
Laboratory Report not with
presented or experimental along with or numerical
Reports submitted exact results
incomplete procedure is detailed analysis is
and complete
submission presented procedure performed
report in all
respects
Category Ungraded Very Poor Poor Fair Good Excellent
Percentage [0] [1-20] [21-40] [41-60] [61-80] [81-100]
Marks 0.0 0.01 - 0.20 0.21 - 0.40 0.41 - 0.60 0.61 - 0.80 0.81 - 1.0
Total Marks Instructor’s Signature

You might also like