User`s guide
R2011b
8-4
Compatibility Considerations
If you have scripts or functions that use specific identifiers, you must update the code to
use the new identifiers. Typically identifiers are used to turn off specific warnings, or in
code that uses a try/catch statement and performs an action based on a specific error
identifier.
For example, the map:eastof:obsolete identifier has changed to
map:removing:eastof. If your code checks for map:eastof:obsolete, you must
update it to check for map:removing:eastof instead.
To determine the identifier for a warning, run the following command just after you see
the warning:
[msg,msgid] = lastwarn;
This command saves the message identifier to the variable msgid.
To determine the identifier for an error, run the following commands just after you see
the error:
exception = MException.last;
msgid = exception.identifier;
For a mapping of the new warning identifiers to the original identifiers, see the solution
Why is my code that includes Mapping Toolbox message identifiers not working?
New Location for Sample Data
The Mapping Toolbox sample data sets, such as coast.mat and boston.tif, moved
from toolbox/map/mapdemos to toolbox/map/mapdata. All these data sets are still
on the MATLAB path, but it's helpful to know their specific location if you want to peruse
them (or their attributions), or use them to try out the Map Viewer. Also note that the
sample SDTS DEM data has moved into its own subfolder, sdts, within the mapdata
folder.
almanac Function Now Returns More Precise Eccentricity Value
When used with parameter 'airy', the almanac function now returns an eccentricity
value derived from a full-precision value of inverse flattening.