Differentiating a symbolic function
Mostrar comentarios más antiguos
i want to differentiate f=@(x)x^3-4*x^2+x+6; how can i do this? how i can find f'(x)?
Respuestas (2)
KSSV
el 24 de Mzo. de 2017
syms x
f=x^3-4*x^2+x+6;
df = diff(f)
Roger Stafford
el 24 de Mzo. de 2017
0 votos
Express your function in symbolic form and use ‘diff’.
Categorías
Más información sobre Calculus en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!