How to plot "f(x,y) = e^-(x^2+y^2)" function in matlab?
28 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Beyza Taka
el 9 de Abr. de 2020
Comentada: Torsten
el 13 de Ag. de 2022
Undefined function or variable 'y'.
Error in Untitled (line 5)
y = exp(x.^2+y.^2);
my computer gives these errors and I do not know how to fix them.
2 comentarios
Respuesta aceptada
Star Strider
el 9 de Abr. de 2020
Editada: Torsten
el 9 de Abr. de 2020
Try this:
figure
fsurf(@(x,y)exp(-(x.^2+y.^2)), [-2 2 -2 2])
8 comentarios
Rik
el 13 de Ag. de 2022
@Nguyet Nguyen You should have posted a link to your question. That way you avoid double effort.
Torsten
el 13 de Ag. de 2022
Can you also suggest for me what range would i change if i want to draw the function f(x,y)=(x^(2)+y^(2)) ℯ^(y^(2)-x^(2))
The proof of the pudding is in the eating.
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!