【问题标题】:ErrorBar Plot Matlab误差线图 Matlab
【发布时间】:2013-10-14 09:37:29
【问题描述】:

我正在使用 errorbar() 函数在 Matlab 中绘图。我有一组包含平均值、最大值和最小值的数据,但某些点的最大值和最小值与平均值匹配。因此,当我 plkot 错误栏时,我得到如下信息:

问题是我不希望有这些水平线。垂直的是那些平均值与我仍然想保留的最大值和最小值不同的值。有什么帮助吗?

pd: h1= errorbar(x,y,min,max)

【问题讨论】:

标签: matlab


【解决方案1】:

您可以绘制两个系列:

h1 = plot(x,y); % for the central points
idx = min ~= max;
h2 = errorbar(x(idx),y(idx),min(idx), max(idx));

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-11-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多