function Gain = getgain(LoopData)
%GETGAIN  Gets the loop gain value.

%   Author(s): P. Gahinet
%   Copyright 1986-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $ $Date: 2000/06/14 20:18:27 $

% RE: Loop gain defined as the compensator gain in its current format

GainData = LoopData.Compensator.Gain;
Gain = GainData.Sign * GainData.Magnitude;

