Return to Code Examples

Continuous error band in Matlab

I was looking for a plot function in Matlab that could create error “bands” with a continuous filled plot for the standard error, highlighting the mean. In the end I decided to create the function I needed so that I could have the parameters I wanted: namely colours and transparency.

filled_plot_example

Here an example of how to use two versions of the same function, one for matrices and the second for a structure of data. Download the archive with the two functions.

Function 1 (matrix of values)

Function 2 (structure of values)

 

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert
%d bloggers like this: