Main Content


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.



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


collapse all

Display an image and create a point ROI.

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