When I execute the following commands in MATLAB 7.0 (R14):
clear allassignin('base','Azimuth',1); Azimuth
I receive the following warning:
Warning: Could not find an exact (case-sensitive) match for 'Azimuth'. \MATLAB7\toolbox\map\map\azimuth.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').
and the following error:
??? Error using ==> map\private\parseDistAzInputs Not enough input arguments. Error in ==> distance at 75 [useGeodesic, lat1, lon1, lat2, lon2, ellipsoid, ... Error in ==> azimuth at 58 [dist, az] = distance(varargin{:});
The warnings and error messages only occur when I create a variable with the same name as an existing MATLAB function, except for case differences.
Best Answer