sa_fig6_1.m

来自「Smart antennas for wireless communicatio」· M 代码 · 共 17 行

M
17
字号
% plot of fast and slow fading figure 6.1
y=randn(1,200);
y=1E-5*y/max(y);
x1=(1:200)/1600;
x2=(1:200)/200;
x=(1:200)/100;
y1=cos(2*pi*x1);
y2=.1*cos(2*pi*x2);
ytot=1E-4*(y1+y2);
figure;
plot(x,80*log10(ytot)+304,'k',x,80*log10(ytot+y)+304,'k:')
xlabel('Distance (km)')
ylabel('Received Power')
axis([0 2 -30 -10])
%axes('position',[0 0 .5 .5])
%axis equal tight
legend('Slow Fading','Fast Fading')

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?