?? psk_beike.m
字號:
close all,clear;
t=-4.1:0.01:4.1;
c1=cos(4*pi*t);
c2=cos(4*pi*t+pi);
x=u(t+4)-u(t+1)+u(t-1)-u(t-4);%cos(0.2*pi*t);
L=length(t);
for i=1:L;
if x(i)==1
s(i)=c1(i);
else s(i)=c2(i);
end
end
%s=x.*c1+x.*c2.*(u(t+1)-u(t-1));%(x+A0).*c;
subplot(221)
plot(t,x)
title('The modulating signal x(t)')
axis([-4.1,4.1,-0.1,1.1]),
grid on
%subplot(222)
%plot(t,c1)
%title('The carrier c(t)')
%axis([-10,10,-2,2]),
%grid on
subplot(223)
plot(t,s),hold on,plot(t,x,'r:');
title('The modulated signal s(t)')
axis([-4.1,4.1,-1.1,1.1])
grid on
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -