%% Impedance and S-Parameters of Custom Slotted Waveguide Antenna
% Create a slotted waveguide antenna with the following dimensions.

 ant = waveguideSlotted('Length',806e-3,'Width',94e-3, 'NumSlots',8,...
      'Height',44e-3,'Slot',antenna.Rectangle('Length',53e-3,'Width',6.5e-3),'SlotToTop',40.3e-3,...
      'SlotSpacing',80.6e-3,'SlotOffset',10e-3,'FeedHeight',31e-3, ...
      'FeedOffset',[-362.7e-3 0],'FeedWidth',2e-3);
show (ant)  

%
% Plot impedance and S-parameters from 2.2 GHz to 2.8 GHz.

freq = 2.2e9:0.025e9:2.8e9;
figure;
impedance(ant,freq);
s = sparameters(ant,freq);
figure;
rfplot(s);

% Copyright 2019 The MathWorks, Inc.