Differentiation without symbolic toolbox. Is it possible numerically?

106 ビュー (過去 30 日間)
JayashP
JayashP 2016 年 3 月 23 日
編集済み: Walter Roberson 2017 年 1 月 31 日
Suppose I have a function
x = 0:0.1:10;
fxy = @(x,y) x^3 +3*x*y^2 + 2*x
I want differentiate w.r.t 'x'
dfxy = @(y)diff(fxy,1)
and then I want to solve for 'y' for 'dfxy(y) = 0'
y0 = 0.1;
yy = fsolve(dfxy,y0)
is this possible without using symbolic toolbox? I get error like 'Function 'diff' is not supported for class 'function_handle'.'

回答 (2 件)

Walter Roberson
Walter Roberson 2016 年 3 月 23 日

Jakub Rysanek
Jakub Rysanek 2017 年 1 月 31 日
編集済み: Walter Roberson 2017 年 1 月 31 日

カテゴリ

Help Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by