myplot_bar: bar graphs with error bar

Making bar graphs, with options to add on error bar (SE, NaN removed) and data points

You are now following this Submission

Making bar graphs, with options to add on error bar (SE) and data points, remove NaN. Can produce publication preferred (simple, black and white) with ease.
PDF documentation and examples can be found in the zip.
Related plotting function can be found in my [GitHub repository](https://github.com/weitingwlin/matlabutility).

SYNTAX:
myplot_bar(data)
myplot_bar(data, [], Texts)
myplot_bar(data, Styles, Texts)

Variables:
data: n x p matrix, each column is a variable, with (at most) n points/replicates.
Variables with less than n datapoint represented by NaN
Styles: a structure, with optional fields to customise figure styles.
Texts: a structure. Texts to put in

Cite As

Wei-Ting Lin (2026). myplot_bar: bar graphs with error bar (https://ch.mathworks.com/matlabcentral/fileexchange/58395-myplot_bar-bar-graphs-with-error-bar), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: mycolor(colorcode, selectplate)

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Edit description.