0% found this document useful (0 votes)
46 views1 page

Experiment No: 2 Date: - / - / - : Digital Signal Processing Lab

The document describes an experiment involving digital signal processing. It includes tasks to generate and plot various signal sequences including unit sample sequences with different delays, sinusoidal sequences with specified frequencies and phases, exponentially decaying and growing complex sinusoidal sequences, random signals that are uniformly distributed and Gaussian distributed, and random sinusoidal signals with random amplitudes and phases. It also includes tasks to convolve two finite sequences and find the auto correlation and cross correlation of the sequences using convolution.

Uploaded by

vinod 1990
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

Experiment No: 2 Date: - / - / - : Digital Signal Processing Lab

The document describes an experiment involving digital signal processing. It includes tasks to generate and plot various signal sequences including unit sample sequences with different delays, sinusoidal sequences with specified frequencies and phases, exponentially decaying and growing complex sinusoidal sequences, random signals that are uniformly distributed and Gaussian distributed, and random sinusoidal signals with random amplitudes and phases. It also includes tasks to convolve two finite sequences and find the auto correlation and cross correlation of the sequences using convolution.

Uploaded by

vinod 1990
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Experiment No: 2

Date: __/__/____
DIGITAL SIGNAL PROCESSING LAB

1. Impulse and Step Sequences Q.1.1) Generate and plot a unit sample sequence for n = -10 to 20 (Program P1), Q.1.2) Modify Program P1 to generate a delayed unit sample sequence with a delay of 11 samples. Q.1.3) Modify Program P1 to generate a unit step sequence s[n]. Q.1.4) Modify Program P1 to generate advanced unit step sequence with an advance of 7 samples. 2. Sinusoidal Sequences Q.2.1) write a program to generate a sinusoidal sequence of length 50, frequency 0.08, amplitude 2.5, and phase shift 90 degrees and display it. Q.2.2) Given two sinusoids with the following amplitude and phases:

x1(t) = 5 cos (2 *500t) x2(t) = 5 cos (2 *1200 t + 0.25 )


Create a MATLAB program to sample each sinusoid and generate a sum of sinusoids, that is,

x(n) = x1(n) + x2(n), using a sampling rate of 8000 Hz, and plot the sum x(n) over a range of
time that will exhibit approximately 0.1 second. 3. Exponential Signals EXP(X) is the exponential of the elements of X, e to the X. For complex Z=X+i*Y, EXP(Z) = EXP(X)*(COS(Y)+i*SIN(Y)). Taking appropriate values for Z Q.3.1) Generate and plot a complex-valued exponentially decaying sinusoidal sequence. Q.3.2) Generate and plot complex-valued exponentially growing sinusoidal sequence using Matlab. 4. Generation of Random Signals: Q.4.1) Write a MATLAB program to generate and display a random signal of length 100 whose elements are uniformly distributed in the interval [2, 2]. Q.4.2) Write a MATLAB program to generate and display a Gaussian random signal of length 75 whose elements are normally distributed with zero mean and a variance of 3. Q.4.3) Write a MATLAB program to generate and display five sample sequences of a random sinusoidal signal of length 31 {X[n]} = {A . cos(on + )} where the amplitude A and the phase are statistically independent random variables with uniform probability distribution in the range 0 A 4 for the amplitude and in the range 0 2 for the phase.

5. Linear time invariant systems a) Obtain the convolution of the given finite sequences x1=[4 2 6 3 8 1 5] ; x2=[3 8 6 9 6 7]

Note: arrow points to zero location in above sequences. Since MATLAB command does not give time index of the convolved result , derive it from the signals to be convolved. b) Find the auto correlation and cross correlation of x1 and x2, with the help convolution.

You might also like