init;
seti.dim = 2;
seti.incType = 'pointSource';
seti.incPntsType = 'square';
seti.incNbEdge = 4;
seti.incEdgeLength = 0.6;
seti = setIncPnts(seti);
seti.measType = 'nearField';
seti.measPntsType = 'square';
seti.measNbEdge = 4;
seti.measEdgeLength = 0.8;
seti = setMeasPnts(seti);
figure(1);
clf;
hold on;
IP = seti.incPnts;
MP = seti.measPnts;
[~,rInc] = cart2pol(IP(1,:),IP(2,:));
[~,rMeas] = cart2pol(MP(1,:),MP(2,:));
incMarkerSize = 30;
measMarkerSize = 7;
plot(IP(1,:),IP(2,:),'b.','MarkerSize',incMarkerSize);
plot(MP(1,:),MP(2,:),'rs','MarkerSize',measMarkerSize,'MarkerFaceColor','red');
clear IP MP;
factor = max(max(rInc),max(rMeas))*1.2;
axis(factor*[-1 1 -1 1]); axis square;
axis off; box off;
hold off;