There is a feature in MATLAB 7.1 (R14SP3) which checks for a case-sensitive match for the variable or function name and uses an incorrect case for the function if it finds one. For instance, I have a variable named "Depth" in my file which does not get created because of a failed IF condition and so now MATLAB 7.1 (R14SP3) picks up a function on my path with name "depth" instead of erroring out saying the variable does not exist.
I get the following warning message at the MATLAB command prompt:
Warning: Could not find an exact (case-sensitive) match for 'Depth'. /mnt/D/matlab/functions/Oceans/depth.m is a case-insensitive match and will be used instead. You can improve the performance of your code by using exact name matches and we therefore recommend that you update your usage accordingly. Alternatively, you can disable this warning using warning('off','MATLAB:dispatcher:InexactMatch').
I want this case-sensitivity checking feature to be disabled and instead generate an error message saying the function/variable does not exist.
Best Answer