MATLAB Answers

y = e^(-x^2)

1,926 views (last 30 days)
fahad
fahad on 15 Nov 2012
Commented: Steven Lord on 24 Nov 2020 at 23:57
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

  0 Comments

Sign in to comment.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 15 Nov 2012
x=0:0.1:10;
y=exp(-x.^2);
plot(x,y)

  0 Comments

Sign in to comment.

More Answers (2)

Andrea Gualpa
Andrea Gualpa on 12 Nov 2019
e^(−x/10) *sin(x)

  0 Comments

Sign in to comment.


Deyanira Rodríguez
Deyanira Rodríguez on 24 Nov 2020 at 18:41
hello! i want to write this expression 5.67x10^-8

  2 Comments

Rik
Rik on 24 Nov 2020 at 19:08
This is not an answer. It is a question that everyone who has finished a tutorial will be able to answer. I suggest you do a basic Matlab tutorial.
Steven Lord
Steven Lord on 24 Nov 2020 at 23:57
y1 = 5.67*10^-8
y1 = 5.6700e-08
y2 = 5.67e-8
y2 = 5.6700e-08

Sign in to comment.

Tags

Products

Community Treasure Hunt

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

Start Hunting!