%% Spiral Inductor - Visualize and Analyze
% This example shows you how to create, visualize, and analyze a spiral inductor.
% Create a spiral inductor with default properties.

inductor = spiralInductor

% View the inductor.

show(inductor)

% Plot the charge distribution at 500 MHz.

charge(inductor, 500e6)

% Plot the current distribution at 500 MHz.

figure
current(inductor, 500e6)

% Calculate and plot the inductance.

figure;
inductance(inductor,linspace(100e6,1e9,30));

% Copyright 2020 The MathWorks, Inc.