This is my code
% carrier signal fc = 100000; Ac = 1; Ta = 1/fc; %period for carrier s = @(t) Ac*cos(2*pi*fc*t); subplot(3,1,1); fplot(s,[0 Ta]); ylabel(\'amp