How to calculate the spectrum of the message w(t), the spectrum of the carrier c(t), and the spectrum of the received signal v(t), and the spectrum of the envelope?
time =0.33; Ts=1/10000; % sampling interval & time
t=0:Ts: time ; lent=length(t); % define a time vector
fm=20; fc =1000; c=cos(2* pi* fc*t); % define carrier at freq fc
w=10/lent *[1:lent]+cos(2* pi*fm*t); % create ”message” > −1
v=c . *w+c ; % modulate w/ large carrier
fbe=[0 0.05 0.1 1] ; % LPF design
damps=[1 1 0 0] ; f l =100; b=firpm( fl , fbe ,damps ); % impulse response of LPF
envv=(pi/2)* filter(b,1,abs(v)); % find envelope
Using this code, how do I find the spectrum of c(t), v(t), w(t), and envv.
0 个评论
回答(1 个)
0 个评论
另请参阅
类别
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!