y = e^(-x^2)

7 次查看(过去 30 天)
fahad
fahad 2012-11-15
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2012-11-15
x=0:0.1:10;
y=exp(-x.^2);
plot(x,y)
  3 个评论
Rik
Rik 2021-10-9
Is this the exact code you're using? Because this isn't a valid Matlab syntax.
Steven Lord
Steven Lord 2021-10-9
Take a look at fimplicit3.

请先登录,再进行评论。

更多回答(1 个)

Manka'a Abongnwi
Manka'a Abongnwi 2023-6-9

y = be ax sin(bx)(0.012x4 0.15x3 + 0.075x2 + 2.5x)

  3 个评论
Manka'a Abongnwi
Manka'a Abongnwi 2023-6-14
Wow after using the formula given by sir, everything worked well except the place to plot a graph of y and z versus x that's difficult
Walter Roberson
Walter Roberson 2023-6-14
plot3()... except that you do not show any z variable.

请先登录,再进行评论。

类别

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

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by