代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
experiment2_2.m
% Experiment 2, CS: Haykin
% phase lock loop and cycle slipping
% requires functions lin.m to run
% Experiment2_2.m and Experiment2_1.m are used for Part 3
% of Experiment2.
% time interval
t0=0;t
experiment1_1.m
%Experiment 1
%Rayleigh distribution
clear all
P=100; Nf=0;Xf=0;
for i=1:P
N=1000; M=2;
a=sqrt(randn(N,M).^2 + randn(N,M).^2);
xi=a.*cos(cos(rand(N,M)*2*pi) + rand(N,M)*2*pi);
sqnqf7.m
x=[-35:35]/7;
alp=0.5;
gx=(sin(pi*(1-alp)*x)+4*alp.*x.*cos(pi*(1+alp).*x))./(pi*x.*(1-(4*alp*x).^2));
gx(36)=(1-alp)+4*alp/pi;
figure(1)
plot(gx)
xlabel('Filter Coefficients')
[gf,w]=freqz(gx,1
sa_ex8_1a.m
%Godara Method
% Example 8.1
d=.5;
N=5;
theta=-pi/2:.01:pi/2;
ang=theta*180/pi;
th0=0; % receive angle
th1=-15*pi/180; % first interferer angle
th2=25*pi/180; % secon
sa_fig4_19.m
%Smart antennas figure 4.19 kaiser-bessel weights on a linear arra
d=.5;
N=input('what is the number of elements?');
theta=-pi/2:.01:pi/2;
ang=theta*180/pi;
test=kaiser(N,3);
check=mod(N,2)
if
sa_fig4_25.m
% Smart Antennas figure 4.25 plotting 3-d circular array patterns
th0=input('What is the steering angle for \theta0?')
ph0=input('What is the steering angle for \phi0?')
th0=th0*pi/180;
ph0=ph0*p
sa_ex8_2b.m
%Maximum SIR beamforming
d=.5;
N= 5;
sig2=.001; % noise variance
theta=-pi/2:.01:pi/2;
ang=theta*180/pi;
th0=30*pi/180; % receive angle
th1=-20*pi/180; % first interferer a
sa_fig6_23.m
% Angular distribution for a circle of scatterers
thmax=pi/4;
th=-pi/4+.01:.001:pi/4-.01;
f=1./sqrt(thmax^2-th.^2);
figure;
plot(th*180/pi,f,'k')
xlabel('Arrival Angle')
Ylabel('PAP')
axis([
sa_ex8_5.m
%Minimum variance Array Weights
% example 8.5
d=.5;
N= 5;
sig2=.001; % noise variance
theta=-pi/2:.01:pi/2;
ang=theta*180/pi;
th0=30*pi/180; % receive angle
th1=-10*pi/180;
s=1;
sa_ex8_3.m
%Minimum MSE beamforming
% Example 8.3
d=.5;
N=5;
sig2=.001; % noise variance
theta=-pi/2:.01:pi/2;
ang=theta*180/pi;
th0=20*pi/180; % receive angle
th1=-20*pi/180; % firs