Average plot of data in a figure

Plot the mean of a figure without knowing original data

You are now following this Submission

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.

Cite As

Hongxue Cai (2026). Average plot of data in a figure (https://uk.mathworks.com/matlabcentral/fileexchange/9690-average-plot-of-data-in-a-figure), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Plot average line

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Improved according to reviews