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

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算法流程图zl031125
RSA算法流程图zl031125_IT/计算机_专业资料。介绍了RSA算法的流程 流程图中用到的符号说明如下: m 未加密的原始数据(明文) c 加密后数据(密文) e 随机选取的...
用实例讲解RSA加密算法(精)
用实例讲解RSA加密算法(精)_计算机软件及应用_IT/计算机_专业资料。可能各位同事好久没有接触数学了,看了这些公式不免一头雾水。别急,在没有正式讲 解 RSA ...
RSA_算法标准
56 PKCS/PKIX 中文翻译计划 PKCS #1 v2.1---RSA Cryptography Standard RSA 算法标准 1 介绍这篇文档是介绍基于 RSA 算法[42]的公钥密码系统的实现方法的,它...
RSA算法分析与编程实现
RSA算法分析与编程实现_计算机软件及应用_IT/计算机_专业资料。RSA算法概述、RSA算法的C++编程实现和实例分析以及RSA算法的安全性分析 ...
RSA算法(论文+代码)
RSA 加密算法 设计报告 加密算法设计报告 课题名称: 课题名称 : RSA 加密算法 设计人(姓名) : 设计人(学号) : 指导教师: 评阅成绩: 评阅成绩 : 评阅意见: ...
RSA算法的数论基础
RSA 算法的数论基础 一、公钥密码体制基础一个好的密码体系的必要条件是合法用户能够很容易对秘密消息进行加密和解密, 而这 些过程对于其他人则是非常难的。 公钥...
RSA加密解密算法c语言程序
RSA加密解密算法c语言程序_计算机软件及应用_IT/计算机_专业资料。带注释,超详细,完美。。。#include<stdio.h> #include<stdlib.h> #include<string.h> //将十...
用实例讲解RSA加密算法(精)
用实例讲解RSA加密算法(精)_IT/计算机_专业资料。讲解RSA算法原理 用实例讲解 RSA 加密算法 RSA 是第一个比较完善的公开密钥算法 公开密钥算法,它既能用于加密,...
RSA算法参数选择
3.4 RSA 参数的选择 RSA遭受攻击的很多情况是因为算法实现的一些细节上的漏洞所导致的, 所 以在使用RSA算法构造密码系统时,为保证安全,在生成大素数的基础上,还...
更多相关标签:
rsa加密算法 | rsa | rsa算法原理 | rsa算法c语言实现 | rsa加密 | java rsa算法 | rsa算法java实现 | des算法 |