3D plot for polynomial

22 ビュー (過去 30 日間)
Durga thiyanesh
Durga thiyanesh 2023 年 10 月 12 日
コメント済み: Dyuman Joshi 2023 年 10 月 12 日
How can I plot a polynomial function in MATLAB? for example: 3xy^3+ 2x^2 y^2+ 6xy^3

採用された回答

Mathieu NOE
Mathieu NOE 2023 年 10 月 12 日
hi
see meshgrid and surf documentaion
[x,y] = meshgrid(-2:.2:2,-4:.4:4);
z = 3*x.*y.^3+ 2*x.^2 .*y.^2+ 6*x.*y.^3;
surf(x,y,z)
  1 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 10 月 12 日
You can directly use fsurf as well -
fsurf(@(x,y) 3*x.*y.^3+ 2*x.^2.*y.^2+ 6*x.*y.^3)

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by