Skip to Main Content Skip to Search
Product Documentation

tagm - Set Tag property of map graphics object

Syntax

tagm(hndl,tagstr)

Description

tagm(hndl,tagstr) sets the Tag property of each object designated in the vector of handles hndl to the associated string (row) of the matrix of strings tagstr.

This property is recognized by the namem and handlem functions.

Examples

Normally, a plotted line has a name of 'line':

axesm miller
lats = [3 2 1 1 2 3]; longs = [7 8 9 7 8 9];
h=plotm(lats,longs);

untagged = namem(h)
untagged =
line

The tagm function can rename it:

tagm(h,'testpath');
tagged = namem(h)
tagged =
testpath

See Also

clma | clmo | handlem | hidem | namem | showm

  


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