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 CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by