%% Shunt Radial Stub - Visualize and Analyze
% This example shows you how to create, visualize, and analyze a radial stub shunt on the X-Y plane.
% Create a shunt radial stub with default properties.

stub = stubRadialShunt

% View the stub.

show(stub)

% Plot the charge distribution at 5 GHz.

charge(stub, 5e9)

% Plot the current distribution at 5 GHz.

figure
current(stub, 5e9)

% Calculate and plot the s-parameters.

spar = sparameters(stub,linspace(3e9,5e9,30));
rfplot(spar)

% Copyright 2020 The MathWorks, Inc.