EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
原谅我英语不好,把matlab说明文件复制到这里来注释一下…… ERRORBAR Error bar plot. ERRORBAR(X,Y,L,U) plots the graph of vector X vs. vector Y with error bars specified by the vectors L and U. L and U contain the lower and upper error ranges for each point in Y. 【L、U是bar的上下限,可以不等。若画相等的情况见下文的ERRORBAR(X,Y,E) or ERRORBAR(Y,E) 】 Each error bar is L(i) + U(i) long and is drawn a distance of U(i) above and L(i) below the points in (X,Y). The vectors X,Y,L and U must all be the same length. If X,Y,L and U are matrices then each column produces a separate line. ERRORBAR(X,Y,E) or ERRORBAR(Y,E) plots Y with error bars [Y-E Y+E]. ERRORBAR(...,'LineSpec') uses the color and linestyle specified by the string 'LineSpec'. The color is applied to the data line and error bars while the linestyle and marker are applied to the data line only. See PLOT for possibilities. ERRORBAR(AX,...) plots into AX instead of GCA. H = ERRORBAR(...) returns a vector of errorbarseries handles in H. For example, x = 1:10; y = sin(x); e = std(y)*ones(size(x)); errorbar(x,y,e) draws symmetric error bars of unit standard deviation. ========================================================== ERRORBARE Enhanced Errorbar Function. ERRORBARE(STY,X,Y,Xbar,Ybar,symbol) It can draw errorbar along X/Y/Dual(双的) axis in normal,semilog,loglog coordinate system, and adjust length of top line automatically, can also control dotstyle and color in the same way with errorbar. If the lower and upper error range of x/y is different, they should be input as [lower,upper] if x/y is a column vector; for a row vector, they should be [lower;uper]. parameter STY include 12 types: v,h,d,vlogx,hlogx,dlogx,vlogy,hlogy, dlogy,vlogd,hlogd,dlogd where v stands for vertical errorbar, h draws horizontal errorbar,【注意,这里转为水平后bar的长度是以x轴的刻度为准fig2。errorbar的bar长度是参考y轴刻度的fig1.】 d means dual direction, logx corresponding to semilogx,can use preffix v/h/d logy corresponding to semilogy,can use preffix v/h/d logd corresponding to loglog,can use preffix v/h/d
fig1
fig2
2 {. a7 P% j. k( ~
把fig1中的XY互换了
$ B# J7 r1 J- J* k& F |