Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Error bar quandry.

Subject: Error bar quandry.

From: Nic Roberts

Date: 22 Jul, 2010 09:51:04

Message: 1 of 2

Hi

I have a large data set and am trying to put spaced out error bars on the graphs but so far have only been able to put error bars on every peice of data. This unfortunatly make the graph un readable.

Is there any way of spacing the error bars out, or just putting them at specific data points? I have been scouring the manulas without much success, thanks.

Nic

Subject: Error bar quandry.

From: Steven_Lord

Date: 22 Jul, 2010 13:17:49

Message: 2 of 2



"Nic Roberts" <dingtheking@googlemail.com> wrote in message
news:i294a8$qjr$1@fred.mathworks.com...
> Hi
>
> I have a large data set and am trying to put spaced out error bars on the
> graphs but so far have only been able to put error bars on every peice of
> data. This unfortunatly make the graph un readable.
>
> Is there any way of spacing the error bars out, or just putting them at
> specific data points? I have been scouring the manulas without much
> success, thanks.

PLOT your full data set.
HOLD ON.
ERRORBAR those points for which you want errorbars.

Or you could take advantage of the fact that graphics commands generally
ignore NaN values:

errorbar(1:3, 1:3, [1 NaN 1], [1 NaN 1])

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us