maptrim(lat,lon) displays the supplied map data in a new figure window and allows a region of the map to be selected and saved in the workspace. lat and lon must be vector map data. The output can be line, patch, or regular surface (matrix) data. If patch map output is selected, the inputs lat and lon must originally be patch map data. maptrim(datagrid,refvec) displays data grid data in a new figure window and allows a subset of this map to be selected and saved. The output is regular surface data. maptrim(datagrid,refvec,PropertyName,PropertyValue) displays the data grid using the surface properties provided. The object Tag, EdgeColor, and UserData properties cannot be set. The maptrim tool displays the supplied map data in a new figure window and activates a Customize menu for that figure. The Customize menu has three menu options: Zoom On/Off, Limits, and Save As. The Limits menu option activates the Enter Map Limits dialog box, which is used to enter the latitude and longitude limits of the desired map subset. These entries are two-element vectors, enclosed in brackets. Pressing the OK button zooms in to the new limits. Pressing the Cancel button disregards the new limits and returns to the map display. The Save As menu option is used to specify the variable names in which to save the map data subset. To save line and patch data, enter the new latitude and longitude variable names, along with the map resolution. For surface data, enter the new map and referencing vector variable names, along with the scale of the map. Latitude and longitude limits are optional. Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: . Source.