Package: matlab.lang.correction
Correct error by replacing identifier in function call
Use ReplaceIdentifierCorrection
objects in functions that throw an
MException
object. MException
uses
ReplaceIdentifierCorrection
instances to display suggestions for incorrect
identifiers in function calls.
ric = matlab.lang.correction.ReplaceIdentifierCorrection(
creates a correction that suggests replacing identifier
,replacement
)identifier
with
replacement
in the function call that threw the
MException
object.