function out=rgstoredata(z,in)
%RGSTOREDATA stores persistent data

%   Copyright (c) 1997-2000 by The MathWorks, Inc.
%   $Revision: 1.2 $  $Date: 2000/03/23 19:38:30 $

persistent RPTGEN_STORED_SIMULINK_DATA

mlock

if nargin>1
   RPTGEN_STORED_SIMULINK_DATA=in;
end

out=RPTGEN_STORED_SIMULINK_DATA;
