作业帮 > 综合 > 作业

MATLAB中,想在画出的图形中标示出计算出的数据,怎么弄?

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/11/08 06:18:53
MATLAB中,想在画出的图形中标示出计算出的数据,怎么弄?
比如:程序算出I=5
要想在画出的图形中标示出I=5,怎么弄?
help text
TEXT Text annotation.
TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
on the current axes,where (X,Y) is in units from the current
plot.If X and Y are vectors,TEXT writes the text at all locations
given.If 'string' is an array the same number of rows as the
length of X and Y,TEXT marks each point with the corresponding row
of the 'string' array.
TEXT(X,Y,Z,'string') adds text in 3-D coordinates.
TEXT returns a column vector of handles to TEXT objects,one
handle per text object.TEXT objects are children of AXES objects.
The X,Y pair (X,Y,Z triple for 3-D) can be followed by
parameter/value pairs to specify additional properties of the text.
The X,Y pair (X,Y,Z triple for 3-D) can be omitted entirely,and
all properties specified using parameter/value pairs.
Execute GET(H),where H is a text handle,to see a list of text
object properties and their current values.Execute SET(H) to see a
list of text object properties and legal property values.
See also xlabel,ylabel,zlabel,title,gtext,line,patch.
Reference page in Help browser
doc text