Code covered by the BSD License  

Highlights from
Plot average line

Be the first to rate this file! 32 Downloads (last 30 days) File Size: 10.21 KB File ID: #27134
image thumbnail

Plot average line

by Jonas

 

31 Mar 2010

plotAverage plots an average line into the data.

| Watch this File

File Information
Description

plotAverage adds an average line into plotted data.

By default, plotAverage
- calculates the average along y (for given or estimated points along x)
- plots errorbars with the standard error of the mean
- discards outliers to calculate the robust average
- plots the average line into the data's axes (as opposed to a new figure)

All these options can be changed.

plotAverage returns the handles to the average line and the error bars as well as the x and y data of the line.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Average plot of data in a figure

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
average plot Jonas 01 Apr 2010 11:22:48
data exploration Jonas 01 Apr 2010 11:22:48
trendline Jonas 01 Apr 2010 11:22:48
average plot Mauro Zarrelli 20 Jan 2012 09:10:17
average plot Mohammad 30 May 2012 12:29:56
average plot Payam Parsinejad 31 May 2012 13:49:17

Contact us at files@mathworks.com