当前位置:首页 >> 信息与通信 >>

RSS算法


function [ doa ] = RssSpectrum( Sensor,L,d_X,angle,snr) bw1=1e7; % ???????í f0=1e8; %???¨???? T1=1e-5; %???ù?¤?? dt1=T1/L; %???ù???? gc = 3e+8; %???? degrad=pi/180; p=1; % ?????????? %%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%% %???ì???ù?ò?? t1=(0:L-1)*dt1; %?±?ò???ù?? sig1=exp(j*pi*bw1*t1.*t1/T1+j*2*pi*f0*t1); %?ú?ú?????÷?????? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%% %?????÷?????????? F0=f0+bw1/(T1)*t1; le=L/8; %?í??????·???8???-???? for i=1:8 f(i)=F0(i*le); F(1,i)=f(i); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%% %???ì???ù???????ó Lambda=gc/f(8); % ?¨?¤ d=d_X*Lambda; %?ó?????à? ? tmp2=d*[0:Sensor-1 ]'; for i=1:8 v1i=sig1(le*(i-1)+1:le*i); s(i,:)=v1i; end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %???ì·??ò???ó A=[exp(-j*2*pi*tmp2*F/gc*sin(angle*degrad))]; %?

ó???÷??,?????????¨???????ó???????¨???? 8??8??(????·???8??) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %???????? S=zeros(8,Sensor); P=zeros(Sensor,Sensor*8); for i=1:8 xi=A(:,i)*s(i,:); xi=awgn(xi,snr); Xi=fft(xi.'); Xi=Xi.'; Ri=Xi*Xi'; ui=1\(A(:,i)'*(1\Ri)*A(:,i)); wi=(1\Ri)*A(:,i)*ui; temp=eig(Ri); temp=sort(temp);

%???????? %FFT %?????-·??????ó %CBF?¤???í

Pi=Ri-[sum(temp)-sum(temp(Sensor-p+1:Sensor))]/(Sen sor-p)*eye(Sensor,Sensor); %?????????ó???-·?????? ó [Ui,Si,Vi]=svd(Pi); %???ì??·??? S(i,:)=sum(Si); P(:,Sensor*(i-1)+1:Sensor*i)=Pi; X(Sensor*(i-1)+1:Sensor*i,:)=Xi; w0(:,i)=wi; end % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%% %???????????? S_=sum(S); sum1=zeros(1,8); for k=1:8 for i=1:8 delta=S(i,k)-S_(1,i)/8; sum1(1,k)=sum1(1,k)+delta^2; end

end [h,k]=min(sum1); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %???ì??·??? % w0=[w1,w2,w3,w4,w5,w6,w7,w8]; w_=w0(1+(k-1)*Sensor*p:k*Sensor*p); w=reshape(w_,Sensor,p); [U1,S1,V1]=svd(w0(:,1)*w'); [U2,S2,V2]=svd(w0(:,2)*w'); [U3,S3,V3]=svd(w0(:,3)*w'); [U4,S4,V4]=svd(w0(:,4)*w'); [U5,S5,V5]=svd(w0(:,5)*w'); [U6,S6,V6]=svd(w0(:,6)*w'); [U7,S7,V7]=svd(w0(:,7)*w'); [U8,S8,V8]=svd(w0(:,8)*w'); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %????±??? T1=V1*U1'; T2=V2*U2'; T3=V3*U3'; T4=V4*U4'; T5=V5*U5'; T6=V6*U6'; T7=V7*U7'; T8=V8*U8'; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %MUSIC??·¨????????????·??ò RY=(T1*X(1:Sensor,:))*(T1*X(1:Sensor,:))'+(T2*X(Sen sor+1:2*Sensor,:))*(T2*X(Sensor+1:2*Sensor,:))'+(T3 *X(2*Sensor+1:3*Sensor,:))*(T3*X(2*Sensor+1:3*Senso r,:))'+(T4*X(3*Sensor+1:4*Sensor,:))*(T4*X(3*Sensor +1:4*Sensor,:))'+(T5*X(4*Sensor+1:5*Sensor,:))*(T5* X(4*Sensor+1:5*Sensor,:))'+(T6*X(5*Sensor+1:6*Senso r,:))*(T6*X(5*Sensor+1:6*Sensor,:))'+(T7*X(6*Sensor +1:7*Sensor,:))*(T7*X(6*Sensor+1:7*Sensor,:))'+(T8* X(7*Sensor+1:8*Sensor,:))*(T8*X(7*Sensor+1:8*Sensor ,:))';%%%???????????????-·??????ó

[U,S11,V]=svd(RY);%%%???÷??·??? Vs=U(:,1:p);%%????×????? Vu=U(:,p+1:Sensor);%%???ù×????? th2=[-90:0.1:90]'; tmp=-j* 2*pi*F(k)/gc *sin(th2'* degrad); a2=tmp2*tmp; a2=exp(a2); num=diag(a2'*a2);%·?×? Ena=Vu'* a2; den=diag(Ena'* Ena);%·??? doa=(num./den);%?????×???? doa=10*log10(doa/max(doa)+eps); end


相关文章:
RSA算法设计与实现
RSA算法设计与实现_计算机软件及应用_IT/计算机_专业资料。本文档是在学习应用密码学课程后所编写,详细描述了本人实现RSA算法所使用的各种算法技术,并附有RSA源代码...
RSA算法的数论基础分析
RSA 算法的数论基础分析摘要:RSA 算法作为目前使用最广泛的一种非对称密码算法,应用广 泛,RSA 主要用来加密比较简短的数据,而加密大量数据的是对称密 码,而对称...
RSA算法原理
RSA算法原理_信息与通信_工程科技_专业资料。RSA 算法原理如果你问我,哪一种算法最重要?我可能会回答"公钥加密算法"。 因为它是计算机通信安全的基石,保证了加密...
用实例讲解RSA加密算法(精)
用实例讲解RSA加密算法(精)_计算机软件及应用_IT/计算机_专业资料。可能各位同事好久没有接触数学了,看了这些公式不免一头雾水。别急,在没有正式讲 解 RSA ...
RSA_算法标准
56 PKCS/PKIX 中文翻译计划 PKCS #1 v2.1---RSA Cryptography Standard RSA 算法标准 1 介绍这篇文档是介绍基于 RSA 算法[42]的公钥密码系统的实现方法的,它...
rsa算法基本流程及签名流程
rsa算法基本流程及签名流程_IT/计算机_专业资料。rsa算法基本流程及签名流程 1、RSA 算法及其实现 、 RSA 加密算法是目前应用最广泛的公钥加密算法,特别适用于通过 ...
RSA加密算法举例
RSA加密算法举例_计算机软件及应用_IT/计算机_专业资料。RSA 加密算法举例 1)为字母制定一个简单的编码,例如 1 到 26 分别对应于 A 到 Z。 2)选择 n,n 为...
RSA算法分析与编程实现
RSA算法分析与编程实现_计算机软件及应用_IT/计算机_专业资料。RSA算法概述、RSA算法的C++编程实现和实例分析以及RSA算法的安全性分析 ...
用实例讲解RSA加密算法(精)
用实例讲解RSA加密算法(精)_IT/计算机_专业资料。讲解RSA算法原理 用实例讲解 RSA 加密算法 RSA 是第一个比较完善的公开密钥算法 公开密钥算法,它既能用于加密,...
RSA算法原理以及PKI系统简介
RSA算法原理以及PKI系统简介_计算机软件及应用_IT/计算机_专业资料。从数学的角度,说明RSA算法的原理。并且简单简述PKI系统中的应用研究...
更多相关标签:
rsa加密算法 | rsa | rsa算法原理 | rsa算法c语言实现 | rsa加密 | java rsa算法 | rsa算法java实现 | des算法 |