17724_exp 1

Upload: paras-bali

Post on 03-Jun-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 17724_Exp 1

    1/5

    ECE324: DIGITAL SIGNAL PROCESSING LABORATORY

    Practical No.:_____(Should be according to your allotted practical sequences. Not according to your IP or your wish. )

    Roll No.:(Full)____________ Registration No.:_______________ Name:____________________

    AIM

    Representing Signals and Waveform Generation: Working with Data.

    1. To generate typical digital signals such as white noise with the Gaussian distribution and sum

    of sinusoids.2. To generated digital signals and speech waveform.

    Aim of Practical 1in more detail.

    Part 1

    a) To generate typical digital signals such asi. Unit impulse sequenceii. Unit step sequenceiii. Unit ramp sequenceiv. Sine wavev. Exponential sequences

    Exponential increasing sequencesExponential decreasing sequences

    b) To perform operation on signalsi. Shiftingii. Foldingiii. Scaling

    Note::It is recommended that you perform these operations on all types of

    signal created in Part 1-a.

    But it is mandatory that you perform these operations on one sequence (at

    least of ten samples) which is provided by your instructor(unique for each

    student).

    c) To generatei. Sum of sinusoids

    Generate a signal which lies between 0 to 3 sec, and have threedifferent frequencies (f1=1Hz, f2=2Hz, f3=3Hz). And its value is zero of

    other intervals of time.

    Generate a signal which have 5Hz signal from 0 to 1sec, 3 Hz signalfrom 1+ to 2 sec and 2 Hz from 2+ to 3sec.

    Note:: The above numerical values should be change for each student

    by instructor.

    ii. Add white noise with the Gaussian distribution in to the sum of sinusoidsgenerated in task.In the section learn how to use awgn and wgn function in

    MATLAB

    Part 2a) To generated digital signals and speech waveform.

    i. In the section learn how to use wavreadfunction in MATLABii. In the section learn how to use imreadfunction in MATLAB

  • 8/12/2019 17724_Exp 1

    2/5

    ECE324: DIGITAL SIGNAL PROCESSING LABORATORY

    Practical No.:_____(Should be according to your allotted practical sequences. Not according to your IP or your wish. )

    Roll No.:(Full)____________ Registration No.:_______________ Name:____________________

    Expected outputs for Practical 1

    Part 1

    a)

    -5 0 50

    0.5

    1

    -----n---->

    --Amplitude-->

    Unit Impulse

    -5 0 50

    0.5

    1

    -----n---->

    --Amplitude-->

    Unit Stem

    -5 0 50

    2

    4

    6

    -----n---->

    --Amplitude-->

    Unit Ramp

    0 0.5 1-1

    -0.5

    0

    0.5

    1

    -----n---->

    --Amplitude-->

    Sine Wave

    0 5 10 15 200

    1

    2

    3

    -----n---->

    --Amplitude-->

    Exp. Increasing

    0 5 10 15 200

    0.5

    1

    -----n---->

    --Amplitude-->

    Exp. Decreasing

  • 8/12/2019 17724_Exp 1

    3/5

    ECE324: DIGITAL SIGNAL PROCESSING LABORATORY

    Practical No.:_____(Should be according to your allotted practical sequences. Not according to your IP or your wish. )

    Roll No.:(Full)____________ Registration No.:_______________ Name:____________________

    b)For continue signal

    0 1 2 3 4 5 6 7 8 9 10

    -1

    0

    1

    -----n---->

    --Amplitude-->

    Input Signal x(t)

    3 4 5 6 7 8 9 10 11 12 13-1

    0

    1

    -----n---->

    --Amplitude-->

    Shifted version x(t-3)

    -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3-1

    0

    1

    -----n---->

    --Amplitude-->

    Folding of the Shifted version x(-t-3)

    -35 -30 -25 -20 -15 -10 -5-1

    0

    1

    -----n---->

    --Amplitude-->

    scaling after shifting and folding x(-2.5t-3)

  • 8/12/2019 17724_Exp 1

    4/5

    ECE324: DIGITAL SIGNAL PROCESSING LABORATORY

    Practical No.:_____(Should be according to your allotted practical sequences. Not according to your IP or your wish. )

    Roll No.:(Full)____________ Registration No.:_______________ Name:____________________

    For Discrete sequences

    0 1 2 3 4 5 6 7 8 9 10

    -1

    0

    1

    -----n---->

    --Amplitude-->

    Input Signal x[n]

    2 3 4 5 6 7 8 9 10 11 12-1

    0

    1

    -----n---->

    --Amplitude-->

    Shifted version x[n-2]

    -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2-1

    0

    1

    -----n---->

    --Amplitude-->

    Folding of the Shifted version x[-n-2]

    -8 -7 -6 -5 -4 -3 -2-1

    0

    1

    -----n---->

    --Amplitude-->

    scaling after shifting and folding x[-1.5n-2]

  • 8/12/2019 17724_Exp 1

    5/5

    ECE324: DIGITAL SIGNAL PROCESSING LABORATORY

    Practical No.:_____(Should be according to your allotted practical sequences. Not according to your IP or your wish. )

    Roll No.:(Full)____________ Registration No.:_______________ Name:____________________

    c)

    Part 2

    Student will do this part by his/her self.

    0 50 100 150 200 250 300 350-5

    0

    5

    -----n---->

    --Amplitude-->

    Sum of sinusoids(three frequencies 1, 2, and 3 Hz from 0-3sec)

    0 50 100 150 200 250 300 350-5

    0

    5

    -----n---->

    --Amplitude-->

    White Gaussian noise added to above signal

    0 50 100 150 200 250 300 350-1

    0

    1

    -----n---->

    --Amplitude-->

    Sum of sinusoids(three frequencies at diffrent intervel of time)

    0 50 100 150 200 250 300 350

    -2

    0

    2

    -----n---->

    --Amplitude-->

    White Gaussian noise added to above signal