/matlab-scripts

A collection of MATLAB plotting scripts.

Primary LanguageMATLAB

Some Useful MATLAB Scripts


In Excel, calculate the 95% confidence interval of a RANGE of cells with

=CONCAT(AVERAGE(RANGE), " ± ", CONFIDENCE(1-0.95, STDEV.P(RANGE), COUNT(RANGE)))

For bar plot color schemes, please use https://color.adobe.com/explore


The dotted line is the average while the solid line shows the distribution of the data (CDF).

Requires three file dependencies:

Note: Saving a hatched plot as a PDF requires CTRL+S instead of clicking the save icon, since the legendflex is a figure in and of itself. The PDF needs to be cropped using a software like Adobe Acrobat.