MATLAB: Is MATLAB case sensitive

casem-fileMATLABsensitivesensitivity

I would like to know if MATLAB is completely case sensitive.

Best Answer

MATLAB is not completely case sensitive.
1) For variable names and built-in functions in MATLAB: case sensitive.
This rule applies for all platforms.
2) For scripts and functions in MATLAB: case sensitivity depends on platforms.
For scripts and functions stored in the system, they are actually considered as files for the system. File system is different for different platforms:
For macOS and Windows platforms, file names are case insensitive. For example, if you created a file named 'test.txt', you cannot create another file named 'Test.txt' in the same folder, that would be considered as duplication.
For Linux system, file names are case sensitive. 'test.txt' and 'Test.txt' can be in the same folder.
So scripts and functions are: case insensitive for macOS and Windows; case sensitive for Linux.
Related Question