%% Compare Current Distribution of Open-ended and Closed-ended Cylindrical Dipole Antenna
% Create a cylindrical dipole antenna with a open-ended top and closed-ended top respectively.

ant = dipoleCylindrical("Radius",0.1);
ant_ClosedEnded = dipoleCylindrical("Radius",0.1,"ClosedEnd",1);

% Calculate and plot the current distribution for a cylindrical dipole antennas at 70MHz frequency.

I_OpenEnded = current(ant,70e6)
current(ant,70e6)
I_ClosedEnded = current(ant_ClosedEnded,70e6)
figure;
current(ant_ClosedEnded,70e6)

% Copyright 2020 The MathWorks, Inc.