File Exchange

image thumbnail

Linear Regression plot with Confidence Intervals in MATLAB

version 1.0.1 (20.1 KB) by ABHILASH SINGH
Sample code to plot linear regression curve with confidence intervals.


Updated 16 Aug 2020

View Version History

View License

This is a simplified code to generate a linear regression curve for your paper/report/assignment. Just replace the sample data and comment the line 17 : axis([0.04 0.3 0.03 .35]);

This code is originated from

Check the Medium article for details

Cite As

ABHILASH SINGH (2021). Linear Regression plot with Confidence Intervals in MATLAB (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)


Thanks Amit and Eugenio for your review. @Eugenio It would be better if you can highlight the problem in detail.


You need to correct this:

Amit Kumar

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Liner Regression with CI