From: Nic Roberts on
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
From: Steven_Lord on


"Nic Roberts" <dingtheking(a)googlemail.com> wrote in message
news:i294a8$qjr$1(a)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(a)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

 | 
Pages: 1
Prev: code error
Next: Create a message 'Processing...'