Differentiating a symbolic function
Mostra commenti meno recenti
i want to differentiate f=@(x)x^3-4*x^2+x+6; how can i do this? how i can find f'(x)?
Risposte (2)
KSSV
il 24 Mar 2017
syms x
f=x^3-4*x^2+x+6;
df = diff(f)
Roger Stafford
il 24 Mar 2017
0 voti
Express your function in symbolic form and use ‘diff’.
Categorie
Scopri di più su Calculus in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!