File Exchange

image thumbnail

Average plot of data in a figure

version 1.0 (2.34 KB) by

Plot the mean of a figure without knowing original data



No License

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.

Comments and Ratings (4)

Sergey Litvinov

Duane Hanselman

I agree. No help. No keep.

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

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

MATLAB Release
MATLAB 7.0.4 (R14SP2)

Inspired: Plot average line

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video