function load(Constr,SavedData)
%LOAD  Reloads saved constraint data.

%   Author(s): A. Stothert
%   Copyright 1986-2004 The MathWorks, Inc. 
%   $Revision: 1.1.6.1 $  $Date: 2004/12/10 19:32:15 $

if isa(Constr,'plotconstr.bodegain') && ...
   isfield(SavedData,'Frequency')
   %Loading old constraint type, create temporary SavedData Structure
   tSaved = struct(...
      'xCoords',SavedData.Frequency,...
      'yCoords',SavedData.Magnitude,...
      'xUnits', 'dB',...
      'yUnits', 'rad/sec', ...
      'Linked', [],...
      'SelectedEdge', 1, ...
      'Type', SavedData.Type);
   SavedData = tSaved;
end

set(Constr,SavedData);