%% Create MException Object
% Create an MException object to capture information about an input error.

errID = 'myComponent:inputError';
msgtext = 'Input does not have the expected format.';

ME = MException(errID,msgtext)

% Copyright 2015 The MathWorks, Inc.