Main Content

setString

Set text label for point ROI object

setString is not recommended. With the new Point 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

collapse all

Display an image and create a point ROI.

imshow("rice.png")
h = impoint(gca,100,200);

Set the label of the ROI.

setString(h,"My point label");

Input Arguments

collapse all

Point ROI object, specified as an impoint object.

Text label, specified as a string scalar or character vector.

Data Types: string | char

Version History

Introduced before R2006a

expand all