how to plot this function

조회 수: 1 (최근 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