フィルターのクリア

how to normalize results from ode45

2 ビュー (過去 30 日間)
Simo
Simo 2020 年 5 月 10 日
回答済み: darova 2020 年 5 月 11 日
I solved using the shooting method the first 3 level of the anharmonic quantum potential well
I get a plot like this
since I've found the three energys with fzero I simply run this code
Any suugest in how to normalize?
thank you
x=linspace(-0.5,+0.5);
V=alpha*x.^2+beta*x.^4;
xspan = [-0.5,0.5];
options = odeset('RelTol',1e-8,'absTol',[1e-8,1e-8]);
for i=1:length(ENERGIE)
Etrial=ENERGIE(i);
[T,Y] = ode45(@Anharmonic,xspan,init_cond,options);
plot(T,Y(:,1))
end
  2 件のコメント
darova
darova 2020 年 5 月 10 日
What normalazing means?
Simo
Simo 2020 年 5 月 10 日
Integrations of square modulus between -inf and +inf equal to 1

サインインしてコメントする。

採用された回答

darova
darova 2020 年 5 月 11 日
What if just to scale the data?
clc,clear
x = -1:.1:1;
y = 2 - x.^2;
plot(x,y) % plot original data
s = trapz(x,y) % find area ander the curve
y1 = y/s; % scale data
line(x,y1) % plot scaled data
trapz(x,y1) % calculate area under the scaled curve

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQuantum Mechanics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by