You are on page 1of 2

Sanzhar

Askaruly, School of Engineering, 201100549

Homework 1
Task 1.

Your communication channel has a bandwidth of 2 MHz. According to Shannons


capacity theorem, plot the capacity of the channel versus SNR from 0 to 20 dB. Use
MATLAB. Insert axis labels with units. (i.e, x-axis SNR (dB) and y-axis is capacity
(bits/sec)). Provide your code.
x=0:20;
y=10.^(x/10)
B=2*10^(6);
C=B.*log2(1+y);
plot(x,C);
xlabel('SNR(db)');
ylabel('capacity(bit/sec)');
grid on;

Task 2.

What should be the transmitted power Px (mW) in order to have -30 dBm received
power?

Hint: Remember, dB defines the ratio. 15 dB gain means that it amplifies the input
signal by 101.5. 12 dB cable loss means that the signal attenuates by a factor of
1/101.2.



Sanzhar Askaruly, School of Engineering, 201100549

First, attempting to try converting dbm into mW gives:


-30dbm=10*log10(x)
Hence, x=.001mW
Next, according to the figure we are given, we define the equation to find sending signal.
x=0.001*10.^(3+1.2-1.5)
Solving this in MATLAB gives: 0.5012

Task 3.

Multiply the two signals c(t) = cos(2100t) and m(t) = cos(22t) using MATLAB.
Plot m(t)*c(t) in MATLAB.
t=0:0.001:1;
c=cos(200*pi*t);
m=cos(4*pi*t);
s=m.*c;
plot(t,s);
grid on
title('Graph of s function to the time')
xlabel('time(s)');
ylabel('s function');

From the graph, it can be observed, that amplitude varies between -1 and 1. Graph is
symmetrical according to x-axis. This type of broadcasting is similar to AM.
There are two types of broadcasting radio signals. AM varies amplitude (frequency stays
constant), and FM varies frequency (amplitude stays the same). FM radio ranges in a higher
spectrum (MHz). AM radio ranges in the range of KHz. FM is less susceptible to noise, since
the changing parameter is frequency, not the amplitude.

You might also like