Differentiation - MATLAB & Simulink
www.mathworks.com › help › symbolicTo determine the default variable that MATLAB differentiates with respect to, use symvar: symvar (f, 1) ans = t. Calculate the second derivative of f with respect to t: diff (f, t, 2) This command returns. ans = -s^2*sin (s*t) Note that diff (f, 2) returns the same answer because t is the default variable.
Functional Derivatives Tutorial - MATLAB & Simulink
www.mathworks.com › functional-derivativeThe wave equation for a string fixed at its ends is solved using functional derivatives. A functional derivative is the derivative of a functional with respect to the function that the functional depends on. The Symbolic Math Toolbox™ implements functional derivatives using the functionalDerivative function. Solving the wave equation is one application of functional derivatives.