Professional Documents
Culture Documents
ADC Lab 1
ADC Lab 1
Billah,Zaid Amir
Reg. # 2019-EE-355,2019-EE-393,2019-EE-
415
Marks
Experiment # 1
• 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
so on…..
Task # 02
Vectors
>> X = [1 2 3 4]
>> Y = [2 5 8 9]
>> X.^Y =
>> X+Y =
>> X-Y =
>> X./Y =
>> X’ =
Task # 04
>> ones (1,4)
Task # 05
>> X = [0:0.1:1]
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
>> 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]
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: