Hey, this is kinda my first try with
function
My aim is to code an automatic sequence for error propagation. E.g.
function [DeltaY] = equation(x)
With DeltaY being the solution and x an equation like x = a*b
As I said I have very little experience with functions, hence:
function [DeltaY] = equation(x)DeltaY = sqrt((diff x,a)^2 * da^2 + (diff x,b)^2 * db^2)end
does not work if I typ
equation(x)
Strikes me as I need to define a b da db seperately like
syms a b da dbx = a*b
But where to put it?
Best Answer