MATLAB: Matlab intrinsic function call fails with “Invalid text character” error

MATLAB

I have recently installed MATLAB and I get the following error with some of MATLAB intrinsic functions, such as the following:
usejava('desktop')
Error: File: system_dependent.m Line: 1 Column: 24
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
What is the source of this error and how can it be resolved?

Best Answer

  • Use your system file explorer to find system_dependent.m looking first under your own files and then under the MATLAB installation directory. What do you find?
    Basically, you should not find any system_dependent.m as it is an undocumented built-in function.