| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Mapping Toolbox |
| Contents | Index |
| Learn more about Mapping Toolbox |
This table summarizes what's new in Version 3.0 (R2009b):
New Features and Changes | Version Compatibility Considerations | Fixed Bugs and Known Problems | Related Documentation at Web Site |
|---|---|---|---|
Yes | Yes — Details labeled as Compatibility Considerations in descriptions of changes, below. See also Summary. | Bug Reports at Web site | Printable Release Notes: PDF |
New Behavior for polymerge when Three or More Line Segments Have Common End Point
Second Input Argument of roundn No Longer Supports Complex Numbers, Non-integers, or Default Values
New functions and classes now make it possible to interact with Web Map Service (WMS) servers and render WMS maps. Use the new features to search a built-in database of pre-qualified WMS servers and layers. Retrieve customized geographic data sets and related metadata from WMS servers. The new classes encapsulate WMS servers, data layers, metadata, and map requests. See the Creating Web Map Service Maps chapter in the User's Guide and related Class Reference for more information.
A new parameter name-value pair syntax makes it easier to construct referencing matrices with makerefmat. You can use the new syntax for an image or raster grid that is referenced to and aligned with a geographic coordinate system but not for one that is referenced to a 2-D map coordinate system. Use parameters to set the number of rows (M) and columns (N) of the raster or image to be used with the referencing matrix; the latitude and longitude limits of the geographic quadrangle bounding the georeferenced raster; and the edges from which row and column indexing start, designating, for example, columns that run either south-to-north or north-to-south.
The functions below now accept referencing matrices as input, and some of them (maptrims, resizem, and vec2mtx) also generate referencing matrices as output. The functions that generate referencing matrices as output do so only in cases where referencing matrices are used as input. If referencing vectors are used as input, referencing vectors are also generated as output. Note that the functions in this table work exclusively with data grids or images that are referenced to geographic (latitude or longitude) coordinates.
| areamat | imbedm | maptrims | setltln | usamap |
| filterm | limitm | meshgrat | setpostn | worldmap |
| findm | los2 | meshlsrm | resizem | |
| getseeds | ltln2val | meshm | vec2mtx | |
| gradientm | mapprofile | neworig | viewshed |
Two new functions, radtodeg and degtorad, replace older functions rad2deg and deg2rad. They are functionally identical.
The older functions, rad2deg and deg2rad, will continue to work, but when writing new code the newer versions are recommended.
The gshhs function now supports Versions 1.4 and later of the Global Self-Consistent, Hierarchical, High-Resolution Shoreline Database (GSHHS).
The behavior of the polymerge function has changed in cases of three or more distinct parts with a common end point. In such cases, the choice of which parts to merge is ambiguous; therefore, none of the corresponding parts are connected at that common point.
In previous releases, if three or more parts shared a common end point, the polymerge function attempted to merge them. The result, however, was unspecified and sometimes obviously wrong.
The functions axesm and setm require that the latitude limits in the 'MapLatLimit' property be provided in ascending order. If you enter the limits in descending order, these functions will now automatically convert the limits to ascending order, and return a warning message notifying you of this change.
In previous releases, if you entered the latitude limits of the 'MapLatLimit' property in descending order when using axesm or setm, you could end up with a map axes that was internally inconsistent, possibly resulting in unexpected errors during subsequent operations. This is no longer the case.
roundn no longer accepts certain types of input for the second input argument, N, which is supposed to be a real, integer-valued exponent. Now, if you use a complex number or non-integer as the second input to roundn, you will receive an error; and if you omit N, you will receive a warning. You will also receive an error if you call roundn with a second output argument to capture error message strings.
In previous releases, if you used a complex number or non-integer as the second input to roundn, this number would be converted into a real integer. If you called roundn with a second output argument to capture error message strings, you would receive an obsolete syntax warning.
In R2009b, -2 is still the default value for the second input argument. This default is being phased out, however, and in the future you will receive an error if you fail to supply the second input argument. If there are any instances in your code with the usage roundn(x), you should replace them with roundn(x,-2).
The two-output syntax option was previously deprecated and has resulted in a warning in the past several releases.
Functions Being Removed in a Future Release
| Name | Stage | Compatibility Considerations |
|---|---|---|
| colorui | Still runs | Replace all existing instances of colorui with uisetcolor. |
| eastof | Warns | If you are using degrees, replace eastof(lon, meridian, 'degrees')with meridian + mod(lon - meridian, 360)and if you are using radians, replace eastof(lon, meridian, 'radians')with meridian + mod(lon - meridian, 2*pi) |
| imagem | Errors | Replace all existing instances of imagem with grid2image. |
| smoothlong | Warns | Use unwrapMultipart instead.
This function requires its input to be in radians. When working in
degrees, use radtodeg(unwrapMultipart(degtorad(lon))) |
| tgrline | Still runs | More recent Tiger/Line® data sets are available in shapefile format and can be imported using shaperead. |
| unitstr | Warns | The syntax str = unitstr(str,'times')has already been removed. |
| westof | Warns | If you are using degrees, replace westof(lon, meridian, 'degrees')with meridian - mod(meridian - lon, 360)and if you are using radians, replace westof(lon, meridian, 'radians')with meridian - mod(meridian - lon, 2*pi) |
Functions Removed in R2009b
| deg2dm | hms2hm | hr2sec | sec2hms | cmapui |
| deg2dms | hms2hr | mat2dms | sec2hr | tigermif |
| dms2deg | hms2mat | mat2hms | time2str | tigerp |
| dms2dm | hms2sec | rad2dm | timedim | |
| dms2mat | hr2hm | rad2dms | contorm | |
| dms2rad | hr2hms | sec2hm | contor3m |
The functions above have been completely removed from the toolbox and error if used.
![]() | Version 3.1 (R2010a) Mapping Toolbox Software | Version 2.7.2 (R2009a) Mapping Toolbox Software | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2010- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |