找回密码
 注册
关于网站域名变更的通知
查看: 350|回复: 1
打印 上一主题 下一主题

matla中的errorbare&errorbar

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2020-4-1 10:17 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

该用户从未签到

2#
发表于 2020-4-1 18:25 | 只看该作者
matla中的errorbare&errorbar
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-6-21 06:04 , Processed in 0.078125 second(s), 26 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表