Differentiating a symbolic function

i want to differentiate f=@(x)x^3-4*x^2+x+6; how can i do this? how i can find f'(x)?

Answers (2)

Express your function in symbolic form and use ‘diff’.

Asked:

on 24 Mar 2017

Answered:

on 24 Mar 2017

Community Treasure Hunt

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

Start Hunting!