Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?

# MATLAB: Derivative of a Function

derivative function

Skip to content# MATLAB: Derivative of a Function

derivative function

Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?

## Best Answer