4.0

4.0 | 8 ratings Rate this file 51 downloads (last 30 days) File Size: 78.22 KB File ID: #2683

confplot

by Michele Giugliano

 

11 Nov 2002 (Updated 12 Nov 2002)

No BSD License  

Extending ERRORBAR, it plots a line within a shaded area, as 'continuous' confidence/error bounds.

Editor's Notes:

This file was a File Exchange Pick of the Week

Download Now | Watch this File

File Information
Description

CONFPLOT is a linear plot utility, extending ERRORBAR to represent continuous confidence/error boundaries as a shaded gray area around the plotted line (i.e. taking advantage of the command 'area').

CONFPLOT(X,Y,L,U) plots the graph of vector X vs. vector Y with 'continuous' confidence/error boundaries specified by the vectors L and U. L and U contain the lower and upper error ranges for each point in Y. The vectors X,Y,L and U must all be the same length.

Acknowledgements
This submission has inspired the following:
errorfill, confplot_t
MATLAB release MATLAB 6.0 (R12)
Zip File Content  
Other Files testpic.jpg,
confidence_plot_test.m,
confplot.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (8)
12 Nov 2003 Ajit Chaudhari

A nice starting point to figure out how to make the error plots I want

02 Aug 2004 Stefano Fusi

Very useful. I'm not sure it works in a log scale.

28 Nov 2005 Alberto Redondas

Very useful but dont work if you have NaN on the error variables.

01 Dec 2005 Sergio Vallina

confplot.m seems ok in the "default mode" (without defining color and linestyle) but has a bug if we try:

    For example,
       x = 1:0.1:10;
       y = sin(x);
       e = std(y)*ones(size(x));
       confplot(x,y,e,'r')

or even it gives an error if we try:

       confplot(x,y,e,'r-')

10 Nov 2006 Raymond Reynolds

Ok, but not sure its very good for multiple plots, which is what i want for comparing overlapping intervals- can't easily control which plots overly others.

11 Jun 2008 Maria Byrne

Great! Just what I was looking for. Very tidy way to represent range of values found in noisy data. I used this function and then overlaid errorbar on top.

19 Jun 2008 jarek tuszynski

Simple and effective. I seem to be using it a lot.

28 Apr 2009 Kay Thurley  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
specialized Michele Giugliano 22 Oct 2008 06:53:49
plotting Michele Giugliano 22 Oct 2008 06:53:49
errorplot confidence Michele Giugliano 22 Oct 2008 06:53:49
confplot Michele Giugliano 22 Oct 2008 06:53:49
specialize Michele Giugliano 22 Oct 2008 06:53:49
specialized plot Michele Giugliano 22 Oct 2008 06:53:49
graphics Michele Giugliano 22 Oct 2008 06:53:49
plotting Rodrigo 14 Oct 2009 17:29:06
standard deviation Rodrigo 14 Oct 2009 17:29:16
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com