About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconshadedErrorBar (Scripts) Publisher's description

Creates a continuous shaded error region rather than discrete bars

Creates a continuous shaded error region rather than discrete bars. Error region can either be specified explicitly or calculated on the fly based upon function handles. Handles of the plot objects are returned in a convenient structure.

function H=shadedErrorBar(x,y,errBar,lineProps,transparent)

Makes a 2-d line plot with a pretty shaded error bar made
using patch. Error bar color is chosen automatically.

x - vector of x values
y - vector of y values or a matrix of n observations by m cases
where m has length(x);
errBar - if a vector we draw symmetric errorbars. If it has a
size of [2,length(x)] then we draw asymmetric error bars
with row 1 being the upper bar and row 2 being the lower
bar. ** alternatively ** errBar can be a cellArray of
two function handles. The first defines which statistic
the line should be and the second defines the error
lineProps - [optional,'-k' by default] defines the properties of
the data line. e.g.:
'or-', or {'-or','markerfacecolor',[1,0.2,0.2]}
transparent - [optional, 0 by default] if ==1 the shaded error
bar is made transparent, which forces the renderer
to be openGl. This means that saved .eps files
won't look so good because they'll be rasters not

H - a structure of handles to the generated plot objects.

y=randn(30,80); x=1:size(y,2);

Overlay two transparent lines
y=randn(30,80)*10; x=(1:size(y,2))-40;
hold on
y=ones(30,1)*x; y=y+0.06*y.^2+randn(size(y))*10;

Rob Campbell - November 2009

System Requirements:

MATLAB 7.8 (R2009a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

shadedErrorBar (Scripts) Tags:

Click on a tag to find related softwares

Is shadedErrorBar (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.