MATLAB Answers

how to write a m file code to cfar for fmcw radar

79 views (last 30 days)
ahmed
ahmed on 5 Dec 2014
Edited: Walter Roberson on 28 Mar 2016
how to write a m file code to cfar for fmcw radar can anyone help plz

  0 Comments

Sign in to comment.

Answers (2)

Abdullah OZCAN
Abdullah OZCAN on 3 Jan 2016
Edited: Walter Roberson on 28 Mar 2016
CFAR thresholding does not depend on the radar type. It is about thresholding the signal at the mixer output. The signal is the amplitude level of range measurements. Here is a sample code. It is only about finding the noise average. This code implements the cell averaging cfar:
close all;
s=randn(1000,1);
s([100, 300, 700])=[30 40 50];
figure,plot(s);
refLength=12;
guardLength=3;
offset=3;
cfarWin=ones((refLength+guardLength)*2+1,1);
cfarWin(refLength+1:refLength+1+2*guardLength)=0;
cfarWin=cfarWin/sum(cfarWin);
noiseLevel=conv(s,cfarWin,'same');
cfarThreshold=noiseLevel+offset;
figure,plot(s);
hold on,plot(cfarThreshold,'r--','LineWidth',2)
legend('Signal','CFAR Threshold')

  1 Comment

venu dunde
venu dunde on 19 Mar 2016
thank you for your answer, how we can choose s([100, 300, 700])=[30 40 50]; , efLength=12; guardLength=3; offset=3; values. usually s is the noise alone, if the signal corrupted with noise how we can choose these values compare with the signal without noise. please give me the code.

Sign in to comment.


Honglei Chen
Honglei Chen on 28 Mar 2016
You may also want to take a look at CFAR detector offered in Phased Array System Toolbox. The noise is estimated using training cells that does not include signal.

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!