text的基本用法text(x,y,'string'),x、y表示图像里标注的位置;string是标注的内容。后面的都是格式控制,具体都在MATLAB的帮助文件里,你搜text查帮助。三维的类似text(x,y,z,'string')。附上MATLAB上的帮助文件(部分),不用翻译吧!!!:text(x,y,'string')text(x,y,z,'string')text(...'PropertyName',PropertyValue...)h = text(...)Descriptiontext is the low-level function for creating text graphics objects. Use text to place character strings at specified locations. text(x,y,'string') adds the string in quotes to the location specified by the point (x,y). text(x,y,z,'string') adds the string in 3-D coordinates. text(x,y,z,'string','PropertyName',PropertyValue....) adds the string in quotes to location defined by the coordinates and uses the values for the specified text properties. See the text property list section at the end of this page for a list of text properties. text('PropertyName',PropertyValue....) omits the coordinates entirely and specifies all properties using property name/property value pairs. h = text(..) returns a column vector of handles to text objects, one handle per object. All forms of the text function optionally return this output argument. See the String property for a list of symbols, including Greek letters. |