how to plot this function

3 vues (au cours des 30 derniers jours)
khaled Abdelghafar
khaled Abdelghafar le 15 Mar 2022
x=[-1,0.1:1,1];
psi0=(1/pi)^0.25*exp(-x^.2/2.);
plot(x,psi0)

Réponse acceptée

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

Plus de réponses (1)

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

Community Treasure Hunt

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

Start Hunting!

Translated by