function [Framedata]=cfar_detector2_1(freqdate,numRange,numVelocity,numGuardCellRange,numTrainingCellRange,numGuardCellVelocity,numTrainingCellVelocity,powerThreshold,snrThreshold)
% 二维恒虚警,十字型检测法
% 雷达实际接收到的原始数据排成M*N矩阵,M是积累脉冲个数,N是距离单元个数。fft后,在距离-多普勒二维平面上,目标只占据时宽和频宽,杂波占据了整个平面。
% 二维CFAR可以增加有效的参考单元数,减小杂波参数估计值的起伏,常见的二维参考窗是矩形窗。
% 只利用和检测单元处在同一距离单元,及处在同一多普勒单元的这些单元作为参考单元,即十字型结构。
% 滑窗选用 6*6 大小,检测中间单元,左右及上下2个单元是保护单元,其他是参考单元。
% 相当于吧距离域当作前窗,频率域当作后窗,采用类似OSCFAR检测器。
% numRange 距离维度;numVelocity 速度维度;
% numGuardCellRange保护距离维度;numTrainingCellRange参考距离维度;
%numGuardCellVelocity保护速度维度;numTrainingCellVelocity 参考速度维度;
% powerThreshold 信号强度阈值;snrThreshold 信噪比阈值;
Framedata = struct('r',[],'v',[],'snr',[]);
SNR = zeros(numRange,numVelocity);
m = 0;
for ii=1:numRange
for jj=1:numVelocity %%分九种情况
freqdate1=0;%下
freqdate2=0;%右
freqdate3=0;%上
freqdate4=0;%左
if ii+numGuardCellRange+numTrainingCellRange<numRange
for iii=ii+numGuardCellRange+1:ii+numGuardCellRange+numTrainingCellRange
freqdate1=freqdate1+freqdate(iii,jj);
end
end
if jj+numTrainingCellVelocity+numTrainingCellRange<numVelocity
for jjj=jj+numTrainingCellVelocity+1:jj+numTrainingCellVelocity+numTrainingCellRange
freqdate2=freqdate2+freqdate(ii,jjj);
end
end
if ii-numGuardCellRange-numTrainingCellRange>0
for iii=ii-numGuardCellRange-numTrainingCellRange:ii-numGuardCellRange-1
freqdate3=freqdate3+freqdate(iii,jj);
end
end
if jj-numTrainingCellVelocity-numTrainingCellRange>0
for jjj=jj-numTrainingCellVelocity-numTrainingCellRange:jj-numTrainingCellVelocity-1
freqdate4=freqdate4+freqdate(ii,jjj);
end
end
if ii<numGuardCellRange+numTrainingCellRange+1 && ...
jj<numGuardCellVelocity+numTrainingCellVelocity+1 %左上角
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate2)*...
(numTrainingCellRange+numTrainingCellVelocity); %下方、右方
elseif ii<numGuardCellRange+numTrainingCellRange+1&&jj>...
numGuardCellVelocity+numTrainingCellVelocity&&jj<...
numVelocity-numGuardCellVelocity-numTrainingCellVelocity...
+1 %上边缘
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate2+freqdate4)...
*(numTrainingCellRange+numTrainingCellVelocity*2);%左边、下边、右边
elseif ii<numGuardCellRange+numTrainingCellRange+1&&jj>...
numVelocity-numGuardCellVelocity-numTrainingCellVelocity %右上角
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate4)*...
(numTrainingCellRange +numTrainingCellVelocity); %左边、下边
elseif ii>numGuardCellRange+numTrainingCellRange&&ii<...
numRange-numGuardCellRange-numTrainingCellRange+...
1&&jj<numGuardCellVelocity+numTrainingCellVelocity+1 %左边缘
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate2+freqdate3)...
*(numTrainingCellRange*2+numTrainingCellVelocity); %上边、右边、下边
elseif ii>numGuardCellRange+numTrainingCellRange&&ii<...
numRange-numGuardCellRange-numTrainingCellRange+...
1&&jj>numGuardCellVelocity+numTrainingCellVelocity&&jj<...
numVelocity-numGuardCellVelocity-numTrainingCellVelocity+1 %内部
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate2+freqdate3+freqdate4)*(numTrainingCellRange...
+numTrainingCellVelocity)*2; %上边、左边、下边、右边
elseif ii>numGuardCellRange+numTrainingCellRange&&ii<numRange-...
numGuardCellRange-numTrainingCellRange+1&&jj>numVelocity...
-numGuardCellVelocity-numTrainingCellVelocity % 右边缘
SNR(ii,jj)= freqdate(ii,jj)/(freqdate1+freqdate3+freqdate4)*...
(numTrainingCellRange*2+numTrainingCellVelocity); %左边、上边、下边
elseif ii>numRange-numGuardCellRange-numTrainingCellRange&&jj<...
numGuardCellVelocity+numTrainingCellVelocity+1 %左下角
SNR(ii,jj)= freqdate(ii,jj)/(freqdate2+freqdate3)*...
(numTrainingCellRange+numTrainingCellVelocity); %上边、右边
elseif ii>numRange-numGuardCellRange-numTrainingCellRange&&jj>...
numGuardCellVelocity+numTrainingCellVelocity&&jj<...
numVelocity-numGuardCellVelocity-numTrainingCellVelocity...
+1 %下边缘
SNR(ii,jj)= freqdate(ii,jj)/(freqdate2+freqdate3+freqdate4)*...
(numTrainingCellRange+numTrainingCellVelocity*2); %左边、上边、右边
else %右下角
SNR(ii,jj)= freqdate(ii,jj)/(freqdate3+freqdate4)*...
(numTrainingCellRange+numTrainingCellVelocity); %左边、上边
end
end
end
for ii=1:numRange
for jj=1:numVelocity
if (freqdate(ii,jj)>powerThreshold) &&( SNR(ii,jj)>snrThreshold) %信号强度及信噪比均满足则视为目标
m = m+1;
Framedata(m).r = ii;
Framedata(m).v = jj;
Framedata(m).snr = SNR(ii,jj);
end
end
end
end
没有合适的资源?快使用搜索试试~ 我知道了~
基于MATLAB实现的雷达的恒虚警检测技术,二维cfar,使用十字形取数法+使用说明文档.zip
![preview](https://csdnimg.cn/release/downloadcmsfe/public/img/white-bg.ca8570fa.png)
共2个文件
md:1个
m:1个
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 110 浏览量
2024-05-23
08:55:46
上传
评论
收藏 14KB ZIP 举报
温馨提示
CSDN IT狂飙上传的代码均可运行,功能ok的情况下才上传的,直接替换数据即可使用,小白也能轻松上手 【资源说明】 基于MATLAB实现的雷达的恒虚警检测技术,二维cfar,使用十字形取数法+使用说明文档.zip 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2020b;若运行有误,根据提示GPT修改;若不会,私信博主(问题描述要详细); 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开main.m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可后台私信博主; 4.1 期刊或参考文献复现 4.2 Matlab程序定制 4.3 科研合作 功率谱估计: 故障诊断分析: 雷达通信:雷达LFM、MIMO、成像、定位、干扰、检测、信号分析、脉冲压缩 滤波估计:SOC估计 目标定位:WSN定位、滤波跟踪、目标定位 生物电信号:肌电信号EMG、脑电信号EEG、心电信号ECG 通信系统:DOA估计、编码译码、变分模态分解、管道泄漏、滤波器、数字信号处理+传输+分析+去噪、数字信号调制、误码率、信号估计、DTMF、信号检测识别融合、LEACH协议、信号检测、水声通信 5、欢迎下载,沟通交流,互相学习,共同进步!
资源推荐
资源详情
资源评论
![m](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
共 2 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
IT狂飙
- 粉丝: 4778
- 资源: 2640
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)