Lab 4-1
Lab 4-1
DEPARTMENT OF
ELECTRONICS & ELECTRICAL
COMMUNICATIONS ENGINEERING
ELE462
Digital Communication Systems
(LABORATORY MANUAL)
BY:
Eng. Amel Mohamed
Eng. Amira EzzEl-din
Spring 2024
LAB #4: The Probability density function
Digital Communication
Syntax
y = pdf('name',x,A)
y = pdf('name',x,A,B)
y = pdf('name',x,A,B,C)
y = pdf('name',x,A,B,C,D)
Description
y = pdf('name',x,A) returns the probability density function (pdf) for the one-
parameter distribution family specified by 'name' and the distribution parameter A,
evaluated at the values in x.
Page 1
Example (1)
Generate a Uniform distributed random variable at the interval [-6,4], plot the random
variable and its PDF.
Solution
Page 2
Example (2)
Generate a Normal distributed random variable with zero mean and unit variance with
two different methods. plot the random variable and its PDF.
Solution
Page 3
Page 4