Differentiating a symbolic function
Afficher commentaires plus anciens
i want to differentiate f=@(x)x^3-4*x^2+x+6; how can i do this? how i can find f'(x)?
Réponses (2)
KSSV
le 24 Mar 2017
syms x
f=x^3-4*x^2+x+6;
df = diff(f)
Roger Stafford
le 24 Mar 2017
0 votes
Express your function in symbolic form and use ‘diff’.
Catégories
En savoir plus sur Calculus dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!