function statusMessage = setDiagnosticPreferences(parameter, value)
% SETDIAGNOSTICPREFERENCES This function will set the MATLAB preferences
% for all the TI C2000 diagnsotic messages that needs to be displayed

% This function will be used to set the value of TI C2000 MATLAB
% preferences for daignostic messages and return the status whether the
% preference settings are successfulot not.

%   Copyright 2020 The MathWorks, Inc.

% Set the MATLAB preference with the value
setpref('MathWorksTIC2000Preferences', parameter, value);
% This is required to run fixit messages in errors and warnings
statusMessage = true;
end