%% Calculate Feed Current of Rat-Race Coupler
% Create a rat-race coupler with default properties.

coupler = couplerRatrace;

% Set the feed voltage and phase at the ports of the rat-race coupler:

v = voltagePort(4);
v.FeedVoltage = [1 0 1 0];
v.FeedPhase = [90 0 270,0];

% Calculate the feed current at 3 GHz.

If = feedCurrent(coupler,3e9)

% Copyright 2020 The MathWorks, Inc.