how to normalize results from ode45
显示 更早的评论
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
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Quantum Mechanics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!