Fitting Lennard-Jones to Morse
Show older comments
k=1.3807E-23;
D=93.4*k;
r0=4.43E-10;
alpha=1.166E10;
% These are my variables for Morse equation
r=1E-10:1E-12:1E-9;
V=D*(1-exp(-alpha*(r-r0))).^2;
plot(r,V)
axis([3.5E-10 9E-10 -1.0E-22 4.5E-21])
xlabel('Atomic Speration in meters')
ylabel('Potential Energy in Joules')
%This is the plot of the Morse Equation
I'm trying to fit this plot to Lennard-Jones(12-6). D(((r0/r)^12)-2*(r0/r)^6) is the Lennard-Jones(12-6). I want to fit it to this, but I don't know how since I don't have any coefficients.
1 Comment
darova
on 19 Mar 2019
What about fit()
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics and Insights in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!