3D plot for polynomial

22 visualizaciones (últimos 30 días)
Durga thiyanesh
Durga thiyanesh el 12 de Oct. de 2023
Comentada: Dyuman Joshi el 12 de Oct. de 2023
How can I plot a polynomial function in MATLAB? for example: 3xy^3+ 2x^2 y^2+ 6xy^3

Respuesta aceptada

Mathieu NOE
Mathieu NOE el 12 de Oct. de 2023
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 comentario
Dyuman Joshi
Dyuman Joshi el 12 de Oct. de 2023
You can directly use fsurf as well -
fsurf(@(x,y) 3*x.*y.^3+ 2*x.^2.*y.^2+ 6*x.*y.^3)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Polynomials en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by