
第一种方法:1、打开控制面板—Set PG/PC Interface
2、在“Set PG/PC Interface”对话框中选择访问点,如图所示。
3、确定连接方式之后,选择电脑当前使用的网卡,选择后可以点击诊断测试连接情况,测试显示0K时,表示接口连接正常。如图所示。(注意:在网卡选择时需要选择后缀为Auto。1<Active>的网卡选项)
clear allg=[1 0 1 1 1 0 0 1]%基带信号
f=100 %载波频率
t=0:2*pi/99:2*pi
cp=[]sp=[]
mod=[]mod1=[]bit=[]
for n=1:length(g)
if g(n)==0
die=-ones(1,100) %Modulante
se=zeros(1,100) %
else g(n)==1
die=ones(1,100) %Modulante
se=ones(1,100)%
end
c=sin(f*t)
cp=[cp die]
mod=[mod c]
bit=[bit se]
end
bpsk=cp.*mod
subplot(2,1,1)plot(bit,'LineWidth',1.5)grid on
title('Binary Signal')
axis([0 100*length(g) -2.5 2.5])
subplot(2,1,2)plot(bpsk,'LineWidth',1.5)grid on
title('ASK modulation')
axis([0 100*length(g) -2.5 2.5])
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)