Version 2.7.1 (R2008b) Mapping Toolbox Software

This table summarizes what's new in Version 2.7.1 (R2008b):

New Features and Changes

Version Compatibility Considerations

Fixed Bugs and Known Problems

Related Documentation at Web Site

Yes
Details below

Yes — Details labeled as Compatibility Considerations in descriptions of changes, below. See also Summary.

Bug Reports at Web site

Printable Release Notes: PDF Current product documentation

Using the Map Axes Map Limit Properties with axesm, setm, and defaultm

Changes and enhancements have been made to axesm, setm, and defaultm with respect to map axes properties that affect the fundamental display geometry:

The changes result in the following improvements:

For more information, see the section Using the Map Limit Properties in the Mapping Toolbox™ User's Guide and bug report 319891 on the MathWorks Web site.

Changing Projection Type of an Existing Map Axes with setm

In previous releases, calling the setm function to change the MapProjection property of a map axes, especially when switching between an azimuthal and non-azimuthal projection (e.g., a conic or cylindrical projection), often resulted in the following types of problems:

The setm function now more effectively resets the projection, clearing out settings that were specific to the earlier projection, updating the map frame and graticule, and staying in the same general part of the world (even when switching between azimuthal and non-azimuthal projections).

Compatibility Considerations

You may need to change the way in which you reset various map axes properties, such as Origin, FLatLimit, and FLonLimit after changing projections, as discussed in the section Switching Between Projections in the Mapping Toolbox User's Guide. In many cases it will no longer be necessary to reset as many properties.

Other Bug Fixes with Compatibility Considerations

coast.MAT Data File Revised

Portions of the global coastline latitude-longitude vectors in the coast.MAT data file have been revised to ensure proper polygon topology. The data edits comprise the following:

Map Limit Syntaxes Removed

The following syntaxes are obsolete. An error occurs if you use them.

These syntaxes displayed a data grid with geographic limits that matched the map latitude and longitude limits in the current map axes. Using the old syntaxes correctly involved knowing the latitude and longitude limits of your data and matching them to the values listed under maplatlimit and maplonlimit in the map axes properties. We have replaced these syntaxes with a more direct approach that requires you to enter the latitude and longitude limits for the data grid.

Compatibility Considerations

The table below suggests alternative code to replace the obsolete syntaxes. In the following table, Z is a regular data grid (a 2-D array of class double) and gratsize is a two-element vector specifying the size of the graticule on which Z displays:

gratsize = [number_of_parallels number_of_meridians]

h is a handle to the surface that is displayed. And latlim and lonlim are the geographic limits of the data grid (in degrees):

latlim = [southern_limit northern_limit]

lonlim = [western_limit eastern_limit]

Original SyntaxReplacement Syntax

h = pcolorm(Z)

constructs a surface using the regular data grid Z and a graticule mesh (using meshgrat) with size equal to size(Z) and with geographic limits that match the map latitude and longitude limits in the current map axes.

[lat,lon] = meshgrat(latlim,lonlim,size(Z));

h = pcolorm(lat,lon,Z)

h = pcolorm(Z,gratsize)

uses a graticule mesh with size equal to gratsize.

[lat,lon] = meshgrat(latlim,lonlim,gratsize);

h = pcolorm(lat,lon,Z)

h = surfacem(Z)

constructs a surface using the regular data grid Z and a graticule mesh (using meshgrat) of size 50-by-100. The geographic limits match the map latitude and longitude limits in the current map axes.

h = surfacem(latlim,lonlim,Z)

h = surfacem(Z,gratsize)

uses a graticule mesh with size equal to gratsize.

[lat,lon] = meshgrat(latlim,lonlim,gratsize);

h = surfacem(lat,lon,Z)

h = surflm(Z)

constructs a surface using the regular data grid Z and a graticule mesh (using meshgrat) with size equal to size(Z) and with geographic limits that match the map latitude and longitude limits in the current map axes. It is displayed with a default light source.

h = surflm(latlim,lonlim,Z)

h = surflm(Z,s)

specifies the direction of the light source. s is a two- or three-element vector that specifies the direction from the surface map to the light source as defined in the documentation for surfl.

h = surflm(latlim,lonlim,Z,s)

h = surfm(Z)

constructs a surface using the regular data grid Z and a graticule mesh (using meshgrat) with size equal to size(Z) and with geographic limits that match the map latitude and longitude limits in the current map axes.

h = surfm(latlim,lonlim,Z)

h = surfm(Z,gratsize)

uses a graticule mesh with size equal to gratsize.

[lat,lon] = meshgrat(latlim,lonlim,gratsize);

h = surfm(lat,lon,Z)

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS