フィルターのクリア

Plotting contours of a function

1 回表示 (過去 30 日間)
Kyle Dalminton
Kyle Dalminton 2020 年 6 月 18 日
コメント済み: Kyle Dalminton 2020 年 6 月 18 日
Dear expert.
I am just a beginner when it comes to using MATLAB. Would anybody be so kind and show me the rope of this particular problem? I would like to use this as the base for my further practice.
Let z = f(x, y) = 2x y − y 2 − 4x 2 + 3y.
Draw the contour plot of the function. Point out the local extreme and the saddle point on that figure.
I would like to express my gratitude to your concern!
  4 件のコメント
madhan ravi
madhan ravi 2020 年 6 月 18 日
編集済み: madhan ravi 2020 年 6 月 18 日
Didn’t mean it personally, it was meant generally. Have a good day ;). Don’t be sorry because you didn’t do anything wrong.
Kyle Dalminton
Kyle Dalminton 2020 年 6 月 18 日
Okay, sorry if I went overboard up there :). Your advice has been noted. Thanks again :)

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

採用された回答

KSSV
KSSV 2020 年 6 月 18 日
  1. Fix the limits of x and y. Use linspace for this. Read about linspace.
  2. Make x, Y to a grid using meshgrid. Read about this.
  3. Write your formula i.e f(x,y) interms of matrices X, Y. Read about element by element operations.
  4. Now you got f as a matrix, now you can use contourf.
  5. To find the local extreme use min. Read about this function.
  1 件のコメント
Kyle Dalminton
Kyle Dalminton 2020 年 6 月 18 日
Much appreciated my good sir. I had been completely lost until I saw your answer. I will try to figure out the rest on my on.
I wish you a good day.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by