You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Patching confidence intervals using the patch() function requires performing a left-right flip on both the X component and upper portion of confidence intervals, which can be difficult to remember.
This function automatically patches your confidence intervals to a given target figure. This function does not calculate confidence intervals.
Example:
upper = (1:10) + 2;
lower = (1:10) - 2;
mean = 1:10;
x = 1:10;
fig = figure;
plot(x,mean,'LineWidth',2);
patchCI(fig,x,upper,lower,'k',.3)
Cite As
Manash Sahoo (2026). patchCI (https://au.mathworks.com/matlabcentral/fileexchange/131099-patchci), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (1.43 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
