function restorePCTOutput = turnOffPCTOutput()
% TURNOFFPCTOUTPUT Disables PCT output to the Command Window and returns a
% Cleanup object. When destroyed, this Cleanup object restores PCT Command
% Window output settings to the same state as before TURNOFFPCTOUTPUT
% was called.
%
% restorePCTOutput = TURNOFFPCTOUTPUT() disables PCT output to the Command
% Window and returns a Cleanup object.
%

%   Copyright 2020 The MathWorks, Inc.

if nargout ~= 1
    error(message('parallel:internal:InvalidVerbosityOutput'));
end

restorePCTOutput = parallel.internal.setPCTVerbosity(0);
end