how to obtain anonymous function after derivative ?

13 ビュー (過去 30 日間)
Masoud Nateghi
Masoud Nateghi 2020 年 3 月 28 日
回答済み: Walter Roberson 2020 年 3 月 28 日
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) .
  1 件のコメント
Walter Roberson
Walter Roberson 2020 年 3 月 28 日
How are you differentiating the anonymous function?

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2020 年 3 月 28 日
syms x
df = matlabFunction(diff(f(x), x), 'vars', {x})

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by