MATLAB: Derivative at various points in symbolic math toolbox derivativesymbolicSymbolic Math Toolbox let say i have a vector. A=[1 2 4 6] now i am declaring a function using symbolic toolbox syms xf=x^2 how do you evaluate f at every elements of A? Best Answer A = [1 2 4 6];syms xf(x) = x^2sol = f(A)gives:f(x) = x^2 sol = [ 1, 4, 16, 36] Related SolutionsMATLAB: Symbolic Math Error using diff Dear Carlas, you can try something like this:x = sym('x%d',[2 1]); A = sym('A%d%d',[2 2]);x1 = diff(x' * A * x, x(1));x2 = diff(x' * A * x, x(2));I hope it helps. Good luck! MATLAB: Symbolic Math toolbox- Lie derivative No, you have to code the equations to perform the Lie derivative yourself. Related QuestionCompute in symbolic math toolbox the result of function f(x) for x equals another symbolic expressionMath operation
Best Answer