Documente Academic
Documente Profesional
Documente Cultură
Engineering
Mohakhali, Dhaka 1212, Bangladesh
Course instructor: SJ
Design and Simulation (ETE 399)
AMPLITUDE MODULATION:
When fm =5 Hz and fc= 15Hz;
DSB-SC:
t=0:0.001:1;
vd=8*cos(2*pi*5*t);
vc=0.1*cos(2*pi*15*t);
ft=vc.*vd;
am=ft+vc;
figure(1)
plot(t,vd);
figure(2)
plot(t,vc);
figure(3)
plot(t,am);
FOR DSB-FC :
vm = 10 ;
vc = 5;
t=0:0.0001:0.0999;
f=1:1:999;
wc=2*pi*fc;
wm=2*pi*fm;
V1=vc+vm*sin(wm*t);
V2=-(vc+vm*sin(wm*t));
Vm=vm*sin(wm*t);
Vc=vc*sin(wc*t);
Vam=(1+sin(wm*t)).*(sin(wc*t));
Vf=abs(fft(Vam,10000))/10000;
figure;
plot(t,Vam);
hold on;
plot(t,V1,'r')
plot(t,V2,'r');
xlabel('frequency'),
ylabel('amplitude');
grid on;
title('FM time-domain');
grid on;
figure;
plot(f,vf);
axis([ 0 10^4 0 0.4]);
xlabel('frequency'),ylabel('amplitude');
title('FM frequency-domain');
grid on;figure;plot(t,sm_t);
axis([0 0.1 -1.5 1.5]);
title('FM modulating signal');
Sinusoidal wave
Source code: (1)
Result:
t=-pi:0.01:2*pi;
f=1;
w=2*pi*f;
y=sin(w*t);
plot(t,y);
xlabel('time');
ylabel('Amplitude');
title('sinusoidal wave');
grid on
Exponential/damped wave
Source code:
t=-pi:0.01:2*pi;
f=1;
w=2*pi*f;
y=exp(-0.09*t).*sin(w*t+3);
plot(t,y);
xlabel('time');
Result:
ylabel('Amplitude');
title('exponintial/damped wave');
Result:
t=-pi:0.1:2*pi;
t=0:.1:1;
f=1;
w=2*pi*f;
y=exp(-0.4*t);
stem(t,y);
xlabel('time');
ylabel('Amplitude');
title('exponintial sample wave');
Result:
Result:
t=0:.1:1;
f=10;
w=2*pi*f;
y1=exp(-0.9*t);
y2=exp(0.9*t);
plot(t,y1,'rd',t,y2,'g>');
xlabel('time');
ylabel('Amplitude');
title('exponintial curve');
grid on
Source code:
t=0:.1:1;
f=10;
w=2*pi*f;
y1=exp(-0.9*t);
y2=exp(0.9*t);
plot(t,y1,'kd',t,y2,'k>:');
xlabel('time');
ylabel('Amplitude');
title('exponintial curve');
grid on;
legend('Negative Exp','Positive Exp');
Result: