how to obtain anonymous function after derivative ?

7 Ansichten (letzte 30 Tage)
Masoud Nateghi
Masoud Nateghi am 28 Mär. 2020
Beantwortet: Walter Roberson am 28 Mär. 2020
Hi,
can we have an anonymous function after we differntiate an anonymous function? for example see blow
f = @(x) x^4+3*x^2;
now I want to have another anonymous function which is derivative of f(x) .

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 28 Mär. 2020
syms x
df = matlabFunction(diff(f(x), x), 'vars', {x})

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by