clc; clear all; close all; fs = 1000; t = 0:0.0001:0.1; Am = 1; Ac = 2; fm = 50; fc = 500; Ka = 0.5; % Modulating signal msg = Am * cos(2 * pi * fm * t); % Carrier signal carr = Ac * cos(2 * pi * fc * t); % AM Wave amw = Ac * (Ka * msg) .* cos(2 * pi * fc * t); % Plotting 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');