t = linspace(0;3); % time vector
%% modulating signal
s1 = 3 * cos{4.6*pi*t}; % signal s1
s2 = 7 * Cos(3*pi*t); % signal s2
sm = s1 + s2'; % superposition of the two
%% carrier
Un = 10; % amplitude of carrier wave
fn = 50; % frequency of carrier wave
clear
%% modulation
sAM = (Un + sm)*cos(2*Pi*fn*t);
%% visualizing
figure(1)
plot[sAM,t]