I am trying to fit some data to an asymmetric double sigmoidal (ADS) function in Matlab. I got the function from a paper on deconvolution of kinetic data and I wanted to try it out myself for future use (In case you are interested: https://link.springer.com/article/10.1007%2Fs10973-012-2500-6).
I am using a nonlinear fit:
modelfun = 'y ~ (b1/(1+exp(-(x-b2+(b3/2))/b4)))*(1-(1+exp((x-b2+(b3/2))/b5))^(-1))'
beta0 = [0.1 -14 55 1 -7]
mdlS = fitnlm(tempS, signalS, modelfun, beta0)
I get this as the first error, among others:
Error using classreg.regr.NonLinearFormula/parseStr (line 315)
Unable to understand the formula character vector 'y~(b1/(1+exp(-(x-b2+(b3/2))/b4)))*(1-(1+exp((x-b2+(b3/2))/b5))^(-1))'.
It says that access to the method is protected and I have checked many times if whether I typed-in the right function.
Am I missing something? Or is fitnlm just inappropriate for this function?
Thank you in advance.