資源簡介
msk與gmsk'仿真,分別用matlab進行了調制解調的仿真。

代碼片段和文件信息
clc
clear?all?
close?all
Tu=500e-3;
T=Tu/100000;
A=ones(110000);
Ai=ones(1100020);
c=ones(1100020);
b=ones(1100020);
Aq=zeros(1100020);
q=10;
fc=q/T;?%carrier?frequency
Rs=4*fc;?%simulation?period
t=0:1/Rs:Tu;
%?---------------------------------------------------
A=-1+2*round(rand(110000));
chips?=?[A;zeros(9length(A))];
Ai=chips(:)‘;
????
h?=?gaussfir(0.8110);
b=conv(hAi);
for?i=1:20000
c(i)=sum(b(1:i));
end
tt=0:T:Tu;
figure(1)
plot(tt(1:5000)c(1:5000));
figure(2);
stem(tt(1:5000)(b(1:5000)));
I=cos(c(1:20000));
Q=sin(c(1:20000));
figure(3);
plot(tt(1:5000)(I(1:5000)));
figure(4);
plot(tt(1:5000)(Q(1:5000)));
s_tilde1=(I).*cos(2*pi*fc*t(1:length(I)));
s_tilde2=(Q).*(sin(2*pi*fc*t(1:length(Q))));????
s=500*(s_tilde1+s_tilde2);
figure(5)
plot(t(1:4000)s(1:4000));
figure(6)
[p1f1]=pwelch(s[][][]Rs);
plot(f110*log10(p1));
%-----------------------------------------
clc
clear?all?
Tu=500e-3;
T=Tu/100000;
A=ones(110000);
Ai=ones(1100020);
c=ones(1100020);
b=ones(1100020);
Aq=zeros(1100020);
q=10;
fc=q/T;?%carrier?frequency
Rs=4*fc;?%simulation?period
t=0:1/Rs:Tu;
%?---------------------------------------------------
A=-1+2*round(rand(110000));
chips?=?[A;zeros(9length(A))];
Ai=chips(:)‘;
????
h?=?gaussfir(0.5110);
b=conv(hAi);
for?i=1:20000
c(i)=sum(b(1:i));
end
tt=0:T:Tu;
I=cos(c(1:20000));
Q=sin(c(1:20000));
s_tilde1=(I).*cos(2*pi*fc*t(1:length(I)));
s_tilde2=(Q).*(sin(2*pi*fc*t(1:length(Q))));????
s=500*(s_tilde1+s_tilde2);
hold
[p2f2]=pwelch(s[][][]Rs);
plot(f210*log10(p2)‘r‘);
grid
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????874??2010-05-23?00:35??MSK?&?GMSK\GMSK.asv
?????文件????????1640??2010-05-23?02:53??MSK?&?GMSK\GMSK.m
?????文件???????????0??2010-05-20?17:41??MSK?&?GMSK\Msk
?????文件???????????0??2010-05-21?06:39??MSK?&?GMSK\MSK?&?OQPSK
?????文件???????????0??2010-05-21?20:23??MSK?&?GMSK\MSK?and?OQPSK
?????文件????????2750??2010-05-21?20:41??MSK?&?GMSK\MSK?and?OQPSK.asv
?????文件????????1846??2010-05-23?00:20??MSK?&?GMSK\Msk.asv
?????文件????????1846??2010-05-23?00:22??MSK?&?GMSK\Msk.m
?????文件???????????0??2010-05-21?06:40??MSK?&?GMSK\MSK2
?????文件???????????0??2010-05-21?20:23??MSK?&?GMSK\MSK3
?????文件????????2646??2010-05-21?20:48??MSK?&?GMSK\MSK4.m
?????文件????????1690??2010-05-21?20:14??MSK?&?GMSK\OQPSK.asv
?????文件????????1648??2010-05-21?20:41??MSK?&?GMSK\OQPSK.m
?????文件????????1646??2010-05-23?04:27??MSK?&?GMSK\QPSK.asv
?????文件????????1642??2010-05-23?04:27??MSK?&?GMSK\QPSK.m
?????目錄???????????0??2011-03-15?19:23??MSK?&?GMSK\
- 上一篇:matlab實現三維重建
- 下一篇:matlab十大經典算法
評論
共有 條評論