Propagation of Uncertainty

Returns the propagated uncertainty in a function F imparted to it from its variables
Updated 17 Oct 2014

View License

(UPDATE: Feel free to use this code, but I have written another much better code here:
Handy little function, for those of you in lab classes where they are sticklers for error. (or for those of you that are actual scientists even...!).

Propagation of uncertainty is a really slick formula, but its a massive pain to do by hand. this function does it for you!

To do it, just enter in the symbolic function, a row vector of the variables, a row vector for the estimated values of those variables, and lastly a row vector of the uncertainty associated with those variables.
help PropError has an example in it.
outputs both actual error, and the percent error.

The program follows the equation shown in the screenshot. (courtesy of Wikipedia).
Requires Symbolic Math Toolbox.

Cite As

Brad Ridder (2024). Propagation of Uncertainty (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP3
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!
Version Published Release Notes

linked to my new, better worstcase code

changed the bsd license thingie, and fixed the help comments in my m-file.