Skip to Main Content Skip to Search
Product Documentation

Examples


Use this list to find examples in the documentation.

Your First Maps

Create a World Map
Tour Boston with the Map Viewer

Understanding Vector Geodata

A Look at Vector Data
Displaying a Point
Displaying a Line
Displaying a Polygon
Examining a Geographic Data Structure
Making Point and Line Geostructs
Selecting Data to Read with the shaperead Function

Understanding Raster Geodata

A Look at Raster Data
Constructing a Global Data Grid
Computing Map Limits for Regular Data Grids
Geographic Interpretation of Grid Cells
Precomputing the Size of a Data Grid

Combining Vector and Raster Geodata

Viewing Raster and Vector Data on the Same Map

Geolocated Data Grids

Geolocated Grid Format
Transforming Regular to Geolocated Grids
Transforming Geolocated to Regular Grids

Exporting Vector Geodata

Generating a Single Placemark
Placemarks from Addresses
Exporting Point Geostructs to Placemarks

Understanding Geospatial Geometry

Mapping the Geoid
Computing Conversion Factors
An Annotated Map Illustrating Small Circles

Creating and Viewing Maps

Using worldmap
Using usamap
Accessing and Manipulating Map Axes Properties
Using the Map Limit Properties
Switching Between Projections
Moving Meridian and Parallel Labels
Resetting Frame Limits
Changing Map Projections when Using geoshow
Placing Geographic and Nongeographic Objects in a Map Axes
The Map Frame
Displaying Vector Data as Points and Lines
Displaying Vector Maps as Lines or Patches
Fitting Gridded Data to the Graticule
Using Raster Data to Create 3-D Displays
Picking Locations Interactively
Defining Small Circles and Tracks Interactively
Determining and Manipulating Object Names

Making Three-Dimensional Maps

Using dteds, usgsdems, and gtopo30s to Identify DEM Files
Mapping a Single DTED File with the DTED Function
Mapping Multiple DTED Files with the DTED Function
Extracting DEM Data with demdataui
Computing Line of Sight with los2
Lighting a Terrain Map Constructed from a DTED File
Lighting a Global Terrain Map with lightm and lightmui
Creating Monochrome Shaded Relief Maps Using surflm
Coloring Shaded Relief Maps and Viewing Them in 3-D
Colored 3-D Relief Maps Illuminated with Light Objects
Draping Geoid Heights over Topography
Draping via Converting a Regular Grid to a Geolocated Data Grid
Draping a Geolocated Grid on Regular Data Grid via Texture Mapping
The Globe Display Compared with the Orthographic Projection
Using Opacity and Transparency in Globe Displays
Over-the-Horizon 3-D Views Using Camera Positioning Functions
Displaying a Rotating Globe

Customizing and Printing Maps

Inset Maps
Graphic Scales
North Arrows
Choropleth Maps

Using Colormaps and Colorbars

Colormap for Terrain Data
Contour Colormaps
Colormaps for Political Maps
Labeling Colorbars

Vector Data Manipulation

Extracting and Joining Polygons or Line Segments
Linking Line Segments into Polygons
Interpolating Vectors to Achieve a Minimum Point Density
Interpolating Coordinates at Specific Locations
Overlaying Polygons with the polybool Function
Removing Discontinuities from a Small Circle
Generating a Buffer Around a Polygon
Trimming Vectors to Form Lines and Polygons
Using reducem to Simplify Lines

Raster Data Manipulation

Creating Data Grids from Vector Data
Using a GUI to Rasterize Polygons
Obtaining the Area Occupied by a Logical Grid Variable
Using the mapprofile Function
Computing Gradient Data from a Regular Data Grid

Projections and Transformations

Exploring Projection Aspect
Determining Projection Parameters
Visualizing Projection Distortions via Tissot Indicatrices
Visualizing Projection Distortions via Isolines
Using distortcalc to Determine Map Projection Geometric Distortions
Retrieving Projected Coordinates from a Figure
Using mfwdtran with a Map Projection Structure
Recovering Geodetic Coordinates with minvtran
Obtaining Angular Directions in a Projection Space
Reorienting Vector Data with rotatem
Reorienting Gridded Data with neworig
Understanding UTM Parameters
Setting UTM Parameters with a GUI
Working in UTM Without a Map Axes
Mapping Across UTM Zones

Web Map Service Maps

Basic Workflow for Creating WMS Maps
Finding Temperature Data
Refining by Text String
Refining by Geographic Limits
Updating Your Layer
Retrieving Your Map with wmsread
Setting Optional Parameters
Adding a Legend to Your Map
Retrieving Your Map with WebMapServer.getMap
Setting the Geographic Limits and Time
Manually Editing a URL
Creating a Composite Map of Multiple Layers from One Server
Combining Layers from One Server with Data from Other Sources
Draping Topography and Ortho-Imagery Layers over a Digital Elevation Model Layer
Creating Movie of Terra/MODIS Images
Creating an Animated GIF File
Animating Time-Lapse Radar Observations
Displaying Animation of Radar Images over GOES Backdrop
Retrieving Elevation Data
Display a Merged Elevation and Bathymetry Layer (SRTM30 Plus)
Saving Favorite Servers
Exploring Other Layers from a Server
Writing a KML File
Searching for Layers Outside the Database
Server No Longer Provides Full WMS Services
Problems with Geographic Limits

Navigation

A Numerical Example of Using navfix
Planning the Shortest Path
Track Laydown – Displaying Navigational Tracks
Dead Reckoning

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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