Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Name Mahnoor Khaliq, Moatassem

Billah,Zaid Amir
Reg. # 2019-EE-355,2019-EE-393,2019-EE-
415
Marks
Experiment # 1

Analog Communication Basics and Trainer Familiarization


Objective:

• Basic principles of analog radio communications. Recognize a message signal, a carrier signal, and
a modulated signal
• Circuit Board Familiarization
• To understand the use of MATLAB for solving communication engineering problems.

Task # 01
Help in MATLAB
>> help sin

>> lookfor sin

so on…..
Task # 02
Vectors
>> X = [1 2 3 4]

>> Y = [2 5 8 9]

>> length (X) =

>> size (X) =

What is the difference between these two?


Ans: - length(x) is use to find the total number of elements use in vector. And size(x) is use to represent the
total size of vector (first value and last value in the vector).
Task # 03
>> X.*Y =

>> X.^Y =
>> X+Y =

>> X-Y =

>> X./Y =

>> X’ =

Task # 04
>> ones (1,4)

>> ones (2,4)

>> ones (4,1)


>> zeros (1,4)

>> zeros (2,4)

Task # 05
>> X = [0:0.1:1]

>> length (X)

>> size (X)

Q: - What did the first and second number represent in the output of last instruction?
Ans: - To get the all values from one point to another point, we use (:) colon.
Task # 06

>> A= [ones (1,3), [2:2:10], zeros (1,3)]


What is the length and size of this?

>> Length =

Size =

Task # 07
MATRICES
>> A = [1 2 3;4 5 6;7 8 9]

>> B = [1,2,3;4,5,6;7,8,9]

Q: - Is there any difference between the two?


Ans: - No, there is no difference between the two matrices A and B.
Task # 08
Try to implement 2-to-3 matrix and 3-to-2 matrix.
2- to-3 matrix:

3- to-2 matrix:
Task # 09
PLOTTING
Code:
>> x = [0:0.1:10];
>> y = sin (x);
>> z = cos (x);
>> subplot (3,1,1);
>> plot (x, y);
>> grid on;
>> subplot (3,1,2);
>> plot (x, z);
>> grid on; hold on;
>> subplot (3,1,3);
>> stem (x, z);
>> grid on;
>> hold on;
>> subplot (3,1,3);
>> stem (x, y, ’r’);
Graph:
Task # 10
M-FILES:
Code:

Graph:

Task # 11
y = factorial (x);
Task # 12
Sinusoidal Sequence:
Code:

Graph:

By changing phase:

Task # 13
Discrete Time Sequences:
Code:
Graph:

Task # 14
The MATLAB code for stem sequence function is given below:
Code:

Graph:
Task # 15
Random Sequence:
Code:

Graph:
Task # 16
Periodic Sequences:
Code:

Graph:

You might also like