フィルターのクリア

Finding the null gradient

7 ビュー (過去 30 日間)
bh1910
bh1910 2015 年 7 月 24 日
コメント済み: Star Strider 2015 年 7 月 25 日
Hello, I'm kind of struggling with a problem.
If
syms x y
g = gradient ([x^2 + x, y^2 - y], [x, y])
How can I determine [x, y] which make the gradient vector null?
I tried to use fsolve but couldn't get it to work.
A bit lost here. tks
  1 件のコメント
Walter Roberson
Walter Roberson 2015 年 7 月 24 日
try
solve(g,[x,y])

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

採用された回答

Star Strider
Star Strider 2015 年 7 月 24 日
See if this does what you want:
syms x y
f = [x^2 + x, y^2 - y];
g1 = gradient(f(1), [x, y]);
g2 = gradient(f(2), [x, y]);
x0 = solve(g1 == 0)
y0 = solve(g2 == 0)
  2 件のコメント
bh1910
bh1910 2015 年 7 月 24 日
Tks for your answer.
Star Strider
Star Strider 2015 年 7 月 25 日
My pleasure!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConversion Between Symbolic and Numeric についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by