You are on page 1of 6

Mid Term Project Submission

Course: Data Communication [H]


SUMMER 2019-20

Submitted by:
Name ID
Md. Milkan Islam 18-36958-1

Marks Distribution:

Software Skill (Total Mark:20)


Level (10-6) Level (5-2) Level (1) Secured
Objectives
(Completely Attained) (Somewhat Attained) (Not Attained) Marks

Objectives are satisfied at


MATLAB Only few objectives are
All objectives are satisfied. major
Coding satisfied.
extent.

Objectives are satisfied at


Only few objectives are
Result All objectives are satisfied. major
satisfied.
extent.
Performance (Total Mark:20)

Level (20-15) Level (6-14) Level (1-5) Secured


Name
(Completely Attained) (Somewhat Attained) (Not Attained) Marks
Capable to do the analysis
Md. Milkan Capable to do the analysis Not capable to do the
but cannot develop full
Islam independently analysis at all
model
CODE:

A = 1;

B = 8;

C = 3;

D = 6;

E = 9;

F = 5;

G = 8;

H = 1;

AMP1 = 36;

AMP2 = 69;

AMP3 = 95;

FREQ1 = 183;

FREQ2 = 369;

FREQ3 = 958;

deg1 = deg2rad(30);

deg2 = deg2rad(60);

fs = 40e3;

t = 0:1/fs:0.025;

x1 = AMP1*cos(2*pi*FREQ1*t);

subplot(5,1,1);

plot(t, x1,'b');

xlabel('Time');

ylabel('Amplitude');

title('Input Signal')

x2 = AMP2*cos(2*pi*FREQ2*t+deg1);

subplot(5,1,2);

plot(t, x2, 'g');

xlabel('Time');
ylabel('Amplitude');

x3 = AMP3*cos(2*pi*FREQ3*t+deg2);

subplot(5,1,3);

plot(t, x3);

xlabel('Time');

ylabel('Amplitude');

x = x1 + x2 + x3;

subplot(5,1,4);

plot(t, x);

xlabel('Time');

ylabel('Amplitude');

title('Composite Signal')

subplot(5,1,5);

n = length(x);

ts = mean(diff(t));

FN = fs/2;

FT_Signal = fft(X)/N; % Normalized Fourier Transform Of Data

Fv = linspace(0, 1, fix(n/2)+1)*FN;

Iv = 1:length(Fv);

plot(Fv, abs(FT_Signal(Iv))*2);

xlabel('Frequency');

ylabel('Amplitude');

t1 = 0:1/fs:0.025;

L = 8;

delta = (max(x)-min(x))/L;

Xq = min(x) + (round((x-min(x))/delta)).*delta;

figure;

subplot(2,1,1);

stem(t1, x);
subplot(2, 1, 2);

stairs(t1, Xq,'b');

a = 0.1;

noise = a * randn(size(x));

noisySignal = x + noise;

n = 2;

powfund = A^2/2;

powhurm = a^2/2;

THD = thd(noisySignal, 2);

defTHD = 10*log(powhurm / powfund);

bandwidth_with = obw(noisySignal, fs);

bandwidth_without = obw(x, fs);

SNR = snr(noisySignal);

defSNR= 10*log10(powfund/a);

capacity = bandwidth_with * log2(1+SNR);

SINAD = sinad(noisySignal);

L = 2^(capacity/(2*bandwidth_without));

output = [bandwidth_with bandwidth_without; capacity L; SNR SINAD];


RESULT:

You might also like