Main Content

setString

Set text label for point ROI object

setString is not recommended. With the new pointPoint ROI, set the value of the Label property instead. For more information, see Compatibility Considerations.

Description

example

setString(h,text) places a text label, text, to the lower right of the point ROI object, h.

Examples

Set Label of Point ROI

imshow('rice.png')
h = impoint(gca,100,200);
setString(h,'My point label');

Input Arguments

collapse all

Point ROI object, specified as an impoint object.

Text label, specified as a character vector.

Data Types: char

Compatibility Considerations

expand all

Not recommended starting in R2018b

Introduced before R2006a