File Exchange

image thumbnail


Displays confidence intervals or errorbars by shading around a line


Updated 13 Apr 2006

No License

The Given 20 line function allows you to shade around a line so that you can plot complicated functions with their Standard errors or confidence intervals. This is important since any white space not shaded is "not occupied" by any data rather hinting at significance.

This can be used to display any function. Its very similar to errorbar but just slightly more powerful.

Cite As

Chandramouli Chandrasekaran (2019). JackKnife (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Erie Boorman

This function offered exactly what I was looking for. I know how to calculate standard errors but simply desired to shade them in. Thanks!

Pasco Alquim

Please, don't cheat

Chandramouli Chandrasekaran

I acknowledge the role confplot plays in developing this piece of code. I am sorry that it doesnt a jack knife, I envisaged a need for something like that. For a long time in papers I saw shaded bars and the description was JackKnife, I thought this was called a jackknife, I am sorry if it causes all sorts of confusion... Confplot does the same but it messes up when you add multiple shaded error bars. Hope that clears it up. This code doesnt provide a jack knife but it definitely helps plot errorbars when you have computed them.


Chandramouli Chandrasekaran.

Dimitri Shvorob

.. Besides, CONFPLOT does pretty the same basically-two-lines-of-code thing already. Please delete.

Dimitri Shvorob

The title of the submission (as well as its help header, in part) is spectacularly misleading: the code performs NO calculations, jackknife or otherwise, only some basic plotting.

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: errorshade, errorfill