No BSD License  

Highlights from
Average plot of data in a figure

1.0

1.0 | 3 ratings Rate this file 7 Downloads (last 30 days) File Size: 2.34 KB File ID: #9690

Average plot of data in a figure

by Hongxue Cai

 

18 Jan 2006 (Updated 13 Feb 2006)

Plot the mean of a figure without knowing original data

| Watch this File

File Information
Description

Plot the mean of a figure (average on parameter), without knowing original data. The lines in the figure may have different x values.

Use: meanplot(n) or meanplot(gcf), where n is the figure number.

Acknowledgements
This submission has inspired the following:
Plot average line
MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
19 Jan 2006 John D'Errico

There is no help at all on how to use this. Nor even anything that describes what to expect. Does it plot the overall data mean in each dimension? What if it is a 3d plot? Does it plot a single point, or as a pair of lines? What if the user does not supply a figure number? Does it use gcf? All of these are questions that the user should not need to edit the file to resolve.

It may be of some interest, but it crashed when I tried it on a very simple plot.

>> plot(rand(100,1),'o')
>> meanplot(gcf)
??? Cell contents reference from a non-cell array object.

Error in ==> meanplot at 14
    yy = y{k};

19 Jan 2006 Sergei Koptenko

I beleive John just forgot to put rating=1 in his comment. IMHO any file without help section ought to be deleted regardles if it works or not

19 Jan 2006 Duane Hanselman

I agree. No help. No keep.

27 Jan 2006 Sergey Litvinov  
Please login to add a comment or rating.
Updates
13 Feb 2006

Improved according to reviews

Tag Activity for this File
Tag Applied By Date/Time
data exploration Hongxue Cai 22 Oct 2008 08:12:49
figure mean Hongxue Cai 22 Oct 2008 08:12:49
average plot Hongxue Cai 22 Oct 2008 08:12:49
parameter Hongxue Cai 22 Oct 2008 08:12:49
exploration Hongxue Cai 22 Oct 2008 08:12:49
data Hongxue Cai 22 Oct 2008 08:12:49
graphical Hongxue Cai 22 Oct 2008 08:12:49
average plot University of Shef 22 Aug 2011 11:24:23

Contact us at files@mathworks.com