drawCI95 / draw confidence interval with matlab

draw confidence interval with matlab. using the build-in function fitlm to calculate the 95% CI.
38 Downloads
Updated 22 Nov 2023

View License

using this function, you can easily to draw the correlation shades 95% confidence interval.
There are 2 output, patch and line. then you can change the appearance afterwards.
for more information, you can read here(fitlm): https://de.mathworks.com/matlabcentral/answers/1995998-how-to-obtain-the-fit-line-and-confidence-interval-from-fitlm

Cite As

Jianfeng Liu (2026). drawCI95 / draw confidence interval with matlab (https://www.mathworks.com/matlabcentral/fileexchange/155342-drawci95-draw-confidence-interval-with-matlab), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.1

update the example figure

1.0.0