You are on page 1of 7

DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED

(EL-303) ROLL NO.:2018-EL-003

TASK 1:
▪ Take the help of the commands “sin, ver, who, whos, exp, sum, and sqrt’’
OUTPUT:

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003
TASK 2:
▪ Assign 10 samples, from 0 to 9, of time to the vector t.
▪ Assign 15 samples from 15 to 0 without assigning it to a variable.
▪ Assign a vector A of 10 even samples
OUTPUT:

TASK 3:
▪ Investigate the difference between multiplication * and element-wise multiplication .* of vectors/matrices.
OUTPUT:

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003

TASK 4:
▪ Generate a complex-valued matrix as defined below and calculate the absolute value of this matrix.
a = ones(1,10) + i*(1:10)
OUTPUT:

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003
TASK 5:
Are the following MATLAB variable names legal or illegal? Why?

• electronic1

• 1electronic

• Sir_syed_university_of_engineering__Andtechnology_help
OUTPUT:

REASON:
In matlab,a variable always starts with a letter not with any number or any
character so every variable is legal which starts with a letter and every variable is
illegal which starts without a letter so in given condition “1electronic”is illegal
variable and rest of two are legal variables.

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003
TASK 6:
▪ Explore round, fix, floor and ceil commands by using MATLAB help. Also apply these commands to
following expression
▪ Round off the following:
o Ln 63
o e45
o 14506/56
OUTPUT:

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003

▪ Use fix with the following


o log 75
o e-15
OUTPUT:

▪ Use the floor and ceil with the following:


o A=[1.98, 6.2584, -3.8953]
o B=[-2.963, -0.345, 10.643]
OUTPUT:

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY
DIGITAL SIGNAL PROCESSING LAB SESSION -01 NAME:SYED SHAKAIB AHMED
(EL-303) ROLL NO.:2018-EL-003

DEPARTMENT OF ELECTRICAL ENGINEERING


SIR SYED UNIVERSITY OF ENGINEERING & TECHNOLOGY

You might also like