Azzera filtri
Azzera filtri

how to plot this function

1 visualizzazione (ultimi 30 giorni)
khaled Abdelghafar
khaled Abdelghafar il 15 Mar 2022
Risposto: Davide Masiello il 15 Mar 2022
x=[-1,0.1:1,1];
psi0=(1/pi)^0.25*exp(-x^.2/2.);
plot(x,psi0)

Risposta accettata

Davide Masiello
Davide Masiello il 15 Mar 2022
clear,clc
x = -1:0.1:1;
psi0 = (pi^-0.25)*exp(-x.^2/2);
plot(x,psi0)

Più risposte (1)

Friedel Hartmann
Friedel Hartmann il 15 Mar 2022
x=[-1,0.1:1,1];
psi0=(1/pi)^0.25*exp(-x.^2/2.); % <----------------------
plot(x,psi0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by