I don't know what I did wrong:
%variables
Am=5; %message signal amplitude
Ac=10; %message signal amplitudet=0:0.001:1; %period
Fm=50; %message frequency
Fc=1000; %carrier frequency
%output graph preparation
m=Am*cos(2*pi*Fm*t); %signal equation
c=Ac*cos(2*pi*Fc*t); %carrier equation
%plot m(t) and its amplitude
figure;plot(t,m);xlabel('time');ylabel('m(t)');figure;plot(t,abs(m));xlabel('time');ylabel('m(t)');title('amplitude');%plot c(t) and its amplitude
figure;plot(t,c);xlabel('time');ylabel('c(t)');figure;plot(t,abs(c));xlabel('time');ylabel('c(t)');title('amplitude');%Sketch the magnitude of the multiplication of m(t) with c(t).
y=m.*c;figure;plot(t,y);xlabel('time');ylabel('y(t)');figureplot(t,abs(y));xlabel('time');ylabel('y(t)');title('amplitude');
Best Answer