amplitude_modulation.m
· 442 B · Mathematica
Raw
clc; clear all; close all; fs = 1000 ; t = 0:0.0001:0.1 ; Am = 1 ; Ac = 2; fm = 50 ; fc = 500 ; Ka = 0.5 ; msg=Am*cos(2*pi*fm*t); carr=Ac*cos(2*pi*fc*t); amw=Ac*(Ka*msg).*cos(2*pi*fc*t); subplot(3,1,1); plot(t,msg); xlabel('t'); ylabel('m(t)'); title('modulating signal') subplot(3,1,2); plot(t,carr); xlabel('t'); ylabel('c(t)'); title('carrier signal') subplot(3,1,3); plot(t,amw); xlabel('t'); ylabel('amw(t)'); title('modulated signal')
| 1 | clc; clear all; close all; fs = 1000 ; t = 0:0.0001:0.1 ; Am = 1 ; Ac = 2; fm = 50 ; fc = 500 ; Ka = 0.5 ; msg=Am*cos(2*pi*fm*t); carr=Ac*cos(2*pi*fc*t); amw=Ac*(Ka*msg).*cos(2*pi*fc*t); subplot(3,1,1); plot(t,msg); xlabel('t'); ylabel('m(t)'); title('modulating signal') subplot(3,1,2); plot(t,carr); xlabel('t'); ylabel('c(t)'); title('carrier signal') subplot(3,1,3); plot(t,amw); xlabel('t'); ylabel('amw(t)'); title('modulated signal') |