Introduction - If you have any usage issues, please Google them yourself
clc
fm1=3000000
fm2=5000000
fc=500000000
fs=100000000
Am1=2
Am2=0.3
A=2
N=512
K=N-1
n=0:N-1
t=(0:1/fs:K/fs)
m1=Am1*sin(2*pi*fm1*t)+Am2*sin(2*pi*fm2*t)
figure(1)
subplot(1,1,1),plot(t,m1),title( m2(t) )