%% Create Egg Crate Array and Plot Impedance of all Elements
% Create a 1-by-4 egg-crate array with vivaldiOffsetCavity elements.

eca = eggCrate('Element',vivaldiOffsetCavity,'Size',[1 4])

% View array using the show function.

show(eca)

% Plot the S-parameters of the array over a frequency range of 14--17 GHz.

s = sparameters(eca,linspace(14e9,17e9,41));
rfplot(s)

% Copyright 2020 The MathWorks, Inc.