Main Content

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 row of the character matrix 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

| | | | |

Introduced before R2006a