Borrar filtros
Borrar filtros

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

28 visualizaciones (últimos 30 días)
ahmed
ahmed el 5 de Dic. de 2014
Comentada: Amr Aboughazala el 17 de Ag. de 2022
how to write a m file code to cfar for fmcw radar can anyone help plz

Respuestas (2)

Abdullah OZCAN
Abdullah OZCAN el 3 de En. de 2016
Editada: Walter Roberson el 28 de Mzo. de 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')
  3 comentarios
Kaitlyn  Nguyen
Kaitlyn Nguyen el 23 de Oct. de 2021
Editada: Kaitlyn Nguyen el 23 de Oct. de 2021
What about OS-CFAR? Do you have sample code for that?
Also how do you calculate the detection?
Thank you!
Amr Aboughazala
Amr Aboughazala el 17 de Ag. de 2022
but why offset with addition?
This is different than the scale that have to be multiplied in linear domain. The scale should depend on the desired probability of false alarm.
N = refLength*2;
scale = pbFalseAlarm^(-1/N) - 1;
cfarThreshold=noiseLevel*scale;
is that correct?

Iniciar sesión para comentar.


Honglei Chen
Honglei Chen el 28 de Mzo. de 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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by