y = e^(-x^2)

11 visualizzazioni (ultimi 30 giorni)
fahad
fahad il 15 Nov 2012
Commentato: Walter Roberson il 14 Giu 2023
I want to plot the above equation in matlab but i dont know how to plot please help or provide me code

Risposta accettata

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

Accedi per commentare.

Più risposte (1)

Manka'a Abongnwi
Manka'a Abongnwi il 9 Giu 2023

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

  3 Commenti
Manka'a Abongnwi
Manka'a Abongnwi il 14 Giu 2023
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 il 14 Giu 2023
plot3()... except that you do not show any z variable.

Accedi per commentare.

Categorie

Scopri di più su Graphics Objects in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by