%% Create Antenna Feed in Custom Antenna STL Using Command Line Interface
% Create a customAntennaStl object using the specified STL file.

ant = customAntennaStl
ant.FileName ='patchMicrostrip_ColumnFeed.stl'

% Specify FeedLocation and NumEdges in the createFeed function. The edges are selected based on distance between feed location and midpoints of the edges. Edges can be single feed or a closed polygon.

ant.createFeed([-0.018750000000000 0 0],8)
show (ant)

% Plot the current distribution at 1.75 GHz.

figure 
current(ant,1.75e9,'Scale','log')

% Calculate the impedance at 1.75 GHz.

z = impedance(ant,1.75e9)

% Copyright 2019 The MathWorks, Inc.