Professional Documents
Culture Documents
Submitted by:
Name ID
Md. Milkan Islam 18-36958-1
Marks Distribution:
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);
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;
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;
SNR = snr(noisySignal);
defSNR= 10*log10(powfund/a);
SINAD = sinad(noisySignal);
L = 2^(capacity/(2*bandwidth_without));