Error propagation function for data arrays

版本 1.8.0.0 (1.8 KB) 作者: Jan
This function calculates the function value(s) and uncertainty(ies) of a function f(u1,u2,...,ui),
428.0 次下载
更新时间 2011/11/30

查看许可证

First define a symbolic function f(u1,u2,...,ui) using the syms command.

Next, define a vector u=[u1,u2,...,ui] containing all variables of f.

Define an 1 x i row vector q=[q1,q2,...,qi], containing the values that the function will be evaluated in. Define also an sq=[sq1,sq2,...,sqi] vector, containing the uncertainty on every value in q.

q and sq can also be m x i matrices (for varying values of qi and sqi). You can also have varying qi and a fixed sqi (the function will recognize if sqi is fixed (a row vector) or changing (a matrix).

The function will output an m x 2 matrix with the first column containing f(q) and the second column the error propagation of f(q) using this formula:

http://quicklatex.com/cache3/ql_57dd8db09fd6da8299de031e67dc4699_l3.png

P.s.: a small example is also included in the code...

引用格式

Jan (2024). Error propagation function for data arrays (https://www.mathworks.com/matlabcentral/fileexchange/33945-error-propagation-function-for-data-arrays), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Symbolic Variables, Expressions, Functions, and Preferences 的更多信息
社区

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.8.0.0

Updated title again

1.7.0.0

Updated title

1.3.0.0

Updated description

1.0.0.0