tutorials: Simple_Patch_Antenna with simplified 2D farfield plot

Signed-off-by: Thorsten Liebig <Thorsten.Liebig@gmx.de>
pull/10/head
Thorsten Liebig 2013-08-22 11:37:54 +02:00
parent c713f208c0
commit 657d9f5a2d
1 changed files with 4 additions and 12 deletions

View File

@ -155,19 +155,11 @@ disp( ['radiated power: Prad = ' num2str(nf2ff.Prad) ' Watt']);
disp( ['directivity: Dmax = ' num2str(nf2ff.Dmax) ' (' num2str(10*log10(nf2ff.Dmax)) ' dBi)'] );
disp( ['efficiency: nu_rad = ' num2str(100*nf2ff.Prad./real(P_in(f_res_ind))) ' %']);
% normalized directivity as polar plot
% log-scale directivity plot
figure
polarFF(nf2ff,'xaxis','theta','param',[1 2],'normalize',1)
% conventional directivity plot
figure
D_log = 20*log10(nf2ff.E_norm{1}/max(max(nf2ff.E_norm{1})));
D_log = D_log + 10*log10(nf2ff.Dmax);
plot( nf2ff.theta, D_log );
grid on
xlabel('theta')
ylabel('D (dBi)');
legend('phi=0','phi=90')
plotFFdB(nf2ff,'xaxis','theta','param',[1 2])
% conventional plot approach
% plot( nf2ff.theta*180/pi, 20*log10(nf2ff.E_norm{1}/max(nf2ff.E_norm{1}(:)))+10*log10(nf2ff.Dmax));
drawnow