Errorbar Plot

4 次查看(过去 30 天)
Jacob Brinkmann
Jacob Brinkmann 2012-6-12
I am trying to use the errorbar function:
figure,errorbar(1:0.1:10,sin(1:0.1:10),0.1 * randn(length(1:0.1:10), 1))
and I get a plot that goes from (0,0) to (1,1) with the following data-points, respectively:
X=1, Y=0.84147, L=0.078467, U=0.078467
X=1.1, Y=0.89121, L=0.030862, U=0.030862
I would like the plot to look more like a sine wave with errorbars on the plot.
I realize this sounds confusing, so if you want to know anything else, please ask.
Thanks for reading!
Jake (R2011b)
  1 个评论
Jacob Brinkmann
Jacob Brinkmann 2012-6-12
When I restart matlab, I get the correct errorbar plot output, but after running some GUI code, the errorbar function doesn't seem to work. Any thoughts on how I could be screwing with the way the function executes? I dont have anything named errorbar in the code.

请先登录,再进行评论。

回答(1 个)

Tom Lane
Tom Lane 2012-6-12
Since the points you mentioned appear to be the first two, I wonder if something is setting the axis limits and leaving them fixed. If you try "axis auto" or "clf" when you get in this state, does that improve things?

类别

Help CenterFile Exchange 中查找有关 Errorbars 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by