y = e^(-x^2)

6 ビュー (過去 30 日間)
fahad
fahad 2012 年 11 月 15 日
コメント済み: Walter Roberson 2023 年 6 月 14 日
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 Center および File ExchangeGraphics Objects についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by