Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Was this topic helpful?