function pRestoreEnvironmentAfterSubmission( storedEnv )
; %#ok Undocumented
%pRestoreEnvironmentAfterSubmission - the counterpart to pClearEnvironmentBeforeSubmission.a
%   Call this to restore all the environment variables cleared by that
%   function.

% Copyright 2006-2017 The MathWorks, Inc.

fields = fieldnames( storedEnv );
for ii=1:length( fields )
    setenv( fields{ii}, storedEnv.(fields{ii}) );
end