No BSD License  

1.0

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

Average plot of data in a figure

by

 

18 Jan 2006 (Updated )

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 file inspired Plot Average Line.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (4)
27 Jan 2006 Sergey Litvinov  
19 Jan 2006 Duane Hanselman

I agree. No help. No keep.

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 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};

Contact us