How do I draw a contour plot for f(x, y)=(2*x^2 + 3*y^2)*e^(−x^2−y^2) . that encompasses the critical points (0, 0) and (0, 1)?

1 visualización (últimos 30 días)
How do I draw a contour plot for f(x, y)=(2*x^2 + 3*y^2)*e^(−x^2−y^2) . that encompasses the critical points (0, 0) and (0, 1)?

Respuesta aceptada

KSSV
KSSV el 2 de Abr. de 2022
m = 100 ; n = 100 ;
x = linspace(-1,1,m) ;
y = linspace(-1,1,n) ;
[X,Y] = meshgrid(x,y) ;
F = (2*X.^2 + 3*Y.^2).*exp(-X.^2-Y.^2) ;
contour(X,Y,F)

Más respuestas (0)

Categorías

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

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by