Labsheet 2 PDF

Title Labsheet 2
Course Automatic Control
Institution Indian Institute of Space Science and Technology
Pages 25
File Size 492.5 KB
File Type PDF
Total Downloads 58
Total Views 134

Summary

full Labsheet 2...


Description

Indian Institute of Space Science and Technology Thiruvanathapuram

DSP Lab Assignment 2

Submitted by Sambuddha Majumder SC16B133 5th Semester Engineering Physics INDIAN INSTITUTE OF SPACE SCIENCE AND TECHNOLOGY THIRUVANANTHAPURAM

August 06, 2018

Problem 1 Q no. a AIM:A random signal of length 100 whose elements are uniformly distributed in an interval . • A random variable ’r’ is generated using ’rand’ function,which generally takes value from 0 to 1. So it was multiplied by 4 and 2 is substracted from it to form the range -2 to 2 . • The figure is plotted. Listing 1: Matlab code for random distribution – . 1 2 3 4 5

r = -2+ 4.*rand(100,1); plot(r); xlabel(’n’) ylabel(’x[n]’) title(’Random distribution’)

Inference: A Random distribution has been plotted of length 100 and its elements are uniformly distributed in the range of [-2,2] 1

Q no. b AIM:A Gaussian random signal of length 75 whose elements are normally distributed with zero mean and a variance of 3. ALGORITHM: • A gaussian random distribution was made using ’randn’ function with length 75 . • Square root of 3 was multiplied with it to give a variance of 3. • The figure is plotted.

Listing 2: Matlab code for gaussian random distributionn – . 1 2 3 4 5

r = sqrt(3).*randn(75,1); plot(r); xlabel(’n’) ylabel(’x[n]’) title(’Gaussian Random distribution’)

Inference: A Gaussian random signal of length 75 with a variance 3 and 0 mean has been plotted. 2

Q no. c AIM: A MATLAB program to generate and display five sample sequences of a random sinusoidal signal of length 31 X[n] = A . cos(wn+ phi) where the amplitude A and the phase phi are statistically independent random variables with uniform probability distribution in the range 0...


Similar Free PDFs