資源簡介
代碼分別對多徑多普勒信道進行了時域和頻域的分析,通過觀測時間的不同展現了信道時間選擇性衰落和頻率選擇性衰落,適合初學者理解

代碼片段和文件信息
clear?all;
an=[10.3-0.80.5-0.40.2];
tn=[012345;012345;00.10.20.30.40.5;00.10.20.30.40.5];
wn=[0210684;020100608040;0210684;020100608040];
f=-1:0.01:1;
w=2*pi*f;
for?k=1:4;
????for?i=1:6;
????????h1(i:)=an(i)*exp(-j*w*tn(ki))*exp(j*wn(ki)*0);
????????h2(i:)=an(i)*exp(-j*w*tn(ki))*exp(j*wn(ki)*0.02);
????end
????h1_1(k:)=sum(h1(:1:end));
????h1_2(k:)=sum(h2(:1:end));
end
subplot(421);
plot(fabs(h1_1(1:)));
ylabel(‘case?1‘);
ylim([0?4]);
hold?on
plot(fabs(h1_2(1:))‘r‘);
title(‘amplitude‘);
hold?off
subplot(422);
plot(fangle(h1_1(1:)));
ylim([-4?4]);
hold?on
plot(fangle(h1_2(1:))‘r‘);
title(‘phase‘);
hold?off
subplot(423)
plot(fabs(h1_1(2:)));
ylabel(‘case?2‘);
ylim([0?4]);
hold?on
plot(fabs(h1_2(2:))‘r‘);
hold?off
subplot(424);
plot(fangle(h1_1(2:)));
ylim([-4?4]);
hold?on
plot(fangle(h1_2(2:))‘r‘);
hold?off
subplot(425);
plot(fabs(h1_1(3:)));
ylabel(‘case?3‘);
ylim([0?4]);
hold?on
plot(fabs(h1_2(3:))‘r‘);
hold?off
subplot(426);
plot(fangle(h1_1(3:)));
ylim([-4?4]);
hold?on
plot(fangle(h1_2(3:))‘r‘);
hold?off
subplot(427)
plot(fabs(h1_1(4:)));
xlabel(‘frequency?MHz‘);
ylabel(‘case?4‘);
ylim([0?4]);
hold?on
plot(fabs(h1_2(4:))‘r‘);
hold?off
subplot(428)
plot(fangle(h1_1(4:)));
xlabel(‘frequency?MHz‘);
ylim([-4?4]);
hold?on
plot(fangle(h1_2(4:))‘r‘);
hold?off;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1467??2018-04-20?09:01??test_1.m
?????文件????????1548??2018-04-20?09:43??test_2.m
評論
共有 條評論