Skip to content
Snippets Groups Projects
Commit f8b3d35c authored by lmaresz's avatar lmaresz
Browse files

Improved beamWidth calculation

parent 9c925fe5
No related branches found
No related tags found
No related merge requests found
...@@ -100,7 +100,8 @@ classdef FarField < handle ...@@ -100,7 +100,8 @@ classdef FarField < handle
maxIndex = find(normField == 1, 1); maxIndex = find(normField == 1, 1);
localMins = islocalmin(normField); localMins = islocalmin(normField);
localMinIndexes = find(localMins == 1); localMinIndexes = find(localMins == 1);
beamWidth = (min(abs(localMinIndexes - maxIndex))+1)*(obj.theta(2)-obj.theta(1))*2 dTheta = (obj.theta(2)-obj.theta(1));
beamWidth = sum(mink(abs(localMinIndexes - maxIndex), 2))*dTheta;
end end
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment