Hello,
I want to fit two different datasets (say A and B) with two different equations and parameters in same output plot to compare them. Unless fitted curve of dataset A resembles that one of B I have to change parameters.
Equation for dataset A is:
y(i) = Cn*Cd*sqrt(pi/(8*(epsilon^2)))*(1 + (s/2)^2+ (1/4)*(s/2)^4 +(1/36)*(s/2)^6 +(1/576)*(s/2)^8)*((Cd^2)*(s^2))/(16*(epsilon)^2)*s*exp(-((Cd^2)*(s^2))/(16*(epsilon)^2))*
(( ( exp(-(pi/4)*0.25*Cd^2*s^2)/erfc((sqrt(pi)/2)*0.5*Cd*s))^2 – 2*( 0.5*(exp(-(pi/4)*0.25*Cd^2*s^2)/erfc((sqrt(pi)/2)*0.5*Cd*s)))^2 ) * (erfc((sqrt(pi)/2)*0.5*Cd*s))^2) +
Cn*(pi/2*Cd*s*(2*(0.625)*exp(-(pi/4)*0.25*Cd^2*s^2)/erfc((sqrt(pi)/2)*0.5*Cd*s))* (erfc((sqrt(pi)/2)*0.5*Cd*s))^2 )
Output is
Now I have to fit dataset B with different equation and get its fitted curve in same plot to compare.
Equation for dataset B is:
y(i) = (b+1)*((gamma((b+2)/(b+1)))^(b+1))*(s^b)*(exp(-(((gamma((b+2)/(b+1)))^(b+1))^(b+1)))*(s^(b+1)))
How to get both fitted curves in same output?
Thankyou!
Best Answer