%% Impedance of PIFA Antenna
% Create a PIFA antenna using a dielectric substrate *'RO4725JXR'*. 
d = dielectric('RO4725JXR');
pf = pifa('Length',30e-3, 'Width',20e-3,'Height',0.0060, 'GroundPlaneLength',35e-3, ...
         'GroundPlaneWidth', 35e-3,'Substrate',d)
show(pf)
%%
% Calculate the impedance of the antenna over the specified frequency range.
% GHz.
impedance(pf,linspace(2.2e9,2.5e9,31));

%% 
% Copyright 2012 The MathWorks, Inc.