MATLAB: Do I see the error “Caught unexpected fl::except​::IInterna​lException​” when using the “plot” function

exceptioninternalMATLABplotsearchpath

When I have a plot function in my code it does not plot. Instead it gives this error:
ERROR : Caught unexpected fl::except::IInternalException
What does this mean and how is it fixed?

Best Answer

This error might appear if you have another function named "plot" on your path. Execute the following line to identify all functions named "plot" on your path.
>> which -all plot
If there is a user-defined function listed above the built-in, it may need to be renamed or removed from your path.
Note that you may see a number of other plot functions that are located in the MATLAB install directory. This is expected. They implement specific functionality for other built-in classes.