Fix for Cogent 2000 "case mismatch"
Problems under MATLAB 7


The MATLAB interpreter became much more strict regarding command syntax and case sensitivity with the introduction of version 7 (release 14).  For example, under MATLAB version 6.5 (release 13) when Cogent 2000 attempted to load "cogStd.dll", MATLAB did not complain when it found "cogstd.dll" in the ~\Toolbox directory (even though there was a "case mismatch" between "cogStd" and "cogstd").  However, if Cogent 2000 attempts the same operation under MATLAB 7 the following warning is issued:

Warning: Could not find an exact (case-sensitive) match for 'cogStd'....

Such "case mismatches" between the commands issued and the actual names of .m and .dll files found by MATLAB occur pretty frequently in Cogent 2000.  Hence, lots of bothersome warnings are issued about such command-filename mismatches when running Cogent 2000 scripts under MATLAB 7. One way to handle this is to turn the warnings off by issuing the following MATLAB directive:

warning('off','MATLAB:dispatcher:InexactMatch')

However, this approach is NOT recommended because: (1) MATLAB's command fetch will be slowed since it will exhaustively search the entire command path looking for an exact case-match even if a case-insensitive match is found first, and (2) there are cases where a programming error can occur that would be missed if the warning was disabled.


USD Home Page - Professor Schieber's Home Page - Previous Page