资源简介
压缩感知CS的DOA代码压缩感知CS的DOA代码压缩感知CS的DOA代码压缩感知CS的DOA代码压缩感知CS的DOA代码压缩感知CS的DOA代码
代码片段和文件信息
%function Farfield_DOA (resignal)
clc;
clear;
close all;
Freq =700; %Frequency
snr =40; %Source to noise ratio
M =12; %The number of microphones
Cspeed = 340; % The speed of sound
Lambda = Cspeed/340; %Wavelength
d = Lambda/2; %Array elements spacing
Dirsources = [2035]; %Direction of sound sources
Numsources = length(Dirsources); %Number of sound sources
for q = 1:Numsources
a(:q)=exp(-1i * 2 * pi * Freq * d *(0:M-1)‘*sin(Dirsources(q)*pi/180)/Cspeed); %
end
Energy = [12]; %Sources energy
y = a*Energy‘; %Received signal of array
Y = awgn(ysnr‘measured‘); %Adding noise
grid = 0.1; %The value of grid node
dirmin = -90; %The min and max DOA value of the source plane
dirmax = 90;
Dirmicrogrid = dirmin:grid:dirmax; %Direction between microphone and grid node
Numgrid = length(Dirmicrogrid); %Number of grid
A = zeros(MNumgrid); %Measurement matrix (1/sqrt(M))*e
for j = 1:Numgrid
A(:j)=exp(-1i * 2 * pi * Freq * d * (0:M-1)‘ * sin(Dirmicrogrid(j) * pi / 180) / Cspeed);
end
tic
resignal = CS_OMP(YA) ; %Recover using OMP
resignal = real(resignal‘);
toc
nonsource = nonzeros(resignal)
figure(1);
plot(Dirmicrogridresignal‘k*-‘) % 重建信号
hold on
plot(DirsourcesEnergy‘ks‘)
title([‘SNR = ‘num2str(snr)])
xlabel(‘两个信源方向角‘)
ylabel(‘两个信源幅度值‘)
dirction = (find(resignal) -1) *grid -90
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-10-31 06:56 CS_DOA\
文件 1621 2017-10-31 06:50 CS_DOA\CS_DOA.m
目录 0 2017-10-31 06:57 __MACOSX\
目录 0 2017-10-31 06:57 __MACOSX\CS_DOA\
文件 120 2017-10-31 06:50 __MACOSX\CS_DOA\._CS_DOA.m
文件 497 2017-10-31 06:48 CS_DOA\CS_OMP.m
文件 120 2017-10-31 06:48 __MACOSX\CS_DOA\._CS_OMP.m
- 上一篇:JMS入门
- 下一篇:3GPP 25.321 HSDPA MAC协议中文版
相关资源
- 从动态晶格QCD模拟得出迷人的四夸克
- 易语言EXCEL另存为CSV文件源码
- 美松打印机SDK MsPrintSDK-Demo-DLL-CShare-
-
Temporal-ba
sed Multi-Strokes Sketchy Graphi - 压缩感知常见测量矩阵一维仿真信号
- IP 网络存储IP SAN解决方案(iSCSI)
- LCSTS高质量中文短文本摘要数据集
- 智能卡PCSC读卡器指令发送工具
- ACS读卡器USB驱动程序 v4.0 官方版
- Polarization Optics in Telecommunication
- 虚拟化iSCSI SAN:实现虚拟化基础架构
- iSCSI技术之彻底剖析篇
- Adaptec:杭州学军中学iSCSI存储案例
- ConcreteMathematics2nd.pdf
- cs231a课件第一部分
- csdn_1.7T磁滞回线.xlsx
- Qt图片浏览器 --基于Qt的Graphics View f
- Mentor Graphics Expedition Enterprise v7.9.5.r
- Graphics Magic图像处理魔术师,含Delph
- es(elasticsearch)整合SpringCloudSpringBo
- css3绘制可爱卡通脸部表情特效
- js+css3猫头鹰眼睛跟随鼠标指针转动动
- css3图片放大缩小切换幻灯片效果
- Impact of bond order loss on surface and nanos
- 基于COMSOL Multiphysics的掏穴增透技术应
- MCS-51单片机定时器和计数器区别的理
- STM32F103VCT6TR - High-density performance lin
- LSI向渠道批量供应串行SCSI(SAS)解决
- lsimpt_scsi_srv08_x64.zip
- Codewarrior HCS12 V5.1 license
评论
共有 条评论