Linear Regression plot with Confidence Intervals in MATLAB
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
https://www.mdpi.com/2072-4292/12/14/2266
Check the Medium article for details
https://medium.com/@abhilash.singh/linear-regression-plot-with-confidence-intervals-in-matlab-f90ff0825e94
Cite As
ABHILASH SINGH (2024). Linear Regression plot with Confidence Intervals in MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/78703-linear-regression-plot-with-confidence-intervals-in-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Principal Component Analysis (PCA) on images in MATLAB (GUI)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.