?? rice_doppler.m
字號(hào):
function r=rice_doppler(fm,M,dt,N,Kdb)
T=N*dt-dt;
K=10^(Kdb/10);
const=1/(2*(K+1));
t=0:dt:T;
c=sqrt(2/M);w=2*pi*fm;x=0;y=0;
for n=1:M
alpha=(2*pi*n-pi+(2*pi*rand-pi))/(4*M);
ph1=2*pi*rand-pi;
ph2=2*pi*rand-pi;
x=x+c*cos(w*t*cos(alpha)+ph1);
y=y+c*cos(w*t*sin(alpha)+ph2);
end
r=sqrt(const*((x+sqrt(2*K)).^2+y.^2));
rice_RdB=20*log10(r);
plot(t,rice_RdB)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -