how to plot this function

3 ビュー (過去 30 日間)
khaled Abdelghafar
khaled Abdelghafar 2022 年 3 月 15 日
回答済み: Davide Masiello 2022 年 3 月 15 日
x=[-1,0.1:1,1];
psi0=(1/pi)^0.25*exp(-x^.2/2.);
plot(x,psi0)

採用された回答

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

その他の回答 (1 件)

Friedel Hartmann
Friedel Hartmann 2022 年 3 月 15 日
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