%% Calculate and Plot Convergence of FMM Solver
% Design a default parabolic reflector antenna.

m = reflectorParabolic;

% Set the solver type of the parabolic reflector antenna to FMM.

m.SolverType = 'FMM';

% Calculate the impedance of the parabolic reflector antenna at 10 GHz.

Z = impedance(m,10e9);

% Access the FMM solver and set the relative residual to 1e-3.

s = solver(m);
s.RelativeResidual = 1e-3;

% Calculate and plot the convergence of the FMM solver for the parabolic reflector antenna.

convergence(s)

% Copyright 2021 The MathWorks, Inc.