How to plot "f(x,y) = e^-(x^2+y^2)" function in matlab?

31 次查看(过去 30 天)
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.

采纳的回答

Star Strider
Star Strider 2020-4-9
编辑:Torsten 2020-4-9
Try this:
figure
fsurf(@(x,y)exp(-(x.^2+y.^2)), [-2 2 -2 2])
  8 个评论
Rik
Rik 2022-8-13
@Nguyet Nguyen You should have posted a link to your question. That way you avoid double effort.
Torsten
Torsten 2022-8-13
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by