Uncertainty calculation for given equation
Mostrar comentarios más antiguos
Hi,
In MATLAB R2017a, is it possible to set uncertainties on variables (e.g. a=5±0.2), and then perform calculations with these variables and find the final uncertainty?
a=5±0.2
b=3±0.15
c=19±0.01
y=(a+b)/c^2
and find the uncertainty in y (e.g. y=x±0.2)?
I would like to know if MATLAB can do this automatically, and if it is possible to set the uncertainties. I have symbolic math toolbox and curve fitting toolbox available only.
Thank you for your help,
1 comentario
Sterling Baird
el 2 de Nov. de 2020
Editada: Sterling Baird
el 2 de Nov. de 2020
While not a MATLAB solution (hence a comment, not an answer) and mostly for other people who come across this, if you're looking for an analytic solution, Mathematica has this built-in. See Numbers with Uncertainty. You can even use a series expansion to order "n" (see AroundReplace). I think MATLAB FEX has some similar uncertainty implementations, at least for basic uncertainty propagation, and automatic differentiation (AD) may also be worth looking into.
Respuesta aceptada
Más respuestas (1)
Arpad Lenart
el 8 de Abr. de 2017
0 votos
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
