From 657d9f5a2d2c305e2dca039054bba1cdb8b32f8b Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Thu, 22 Aug 2013 11:37:54 +0200 Subject: [PATCH] tutorials: Simple_Patch_Antenna with simplified 2D farfield plot Signed-off-by: Thorsten Liebig --- matlab/Tutorials/Simple_Patch_Antenna.m | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/matlab/Tutorials/Simple_Patch_Antenna.m b/matlab/Tutorials/Simple_Patch_Antenna.m index 47614c8..41142dc 100644 --- a/matlab/Tutorials/Simple_Patch_Antenna.m +++ b/matlab/Tutorials/Simple_Patch_Antenna.m @@ -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