


 y = doseresp(p, x, [y]) : Dose-response curve with variable Hill slope
   iFunc/doseresp Dose-response curve with variable Hill slope (sigmoid)
     y  = p(4)+ p(1) ./ (1+10.^((p(2)-x).*p(3)));
   This is a sigmoid S-shaped curve, aka logistic.
 doseresp(threshold)      creates a model with a specified threshold
 doseresp([ parameters ]) creates a model with specified model parameters
 input:  p: Dose Response model parameters (double)
            p = [ Amplitude Center Slope BackGround ]
          or 'guess'
         x: axis (double)
         y: when values are given and p='guess', a guess of the parameters is performed (double)
 output: y: model value
 ex:     y=doseresp([1 0 1 1], -10:10); or plot(doseresp)
 Version: Nov. 26, 2018
 See also iData, iFunc/fits, iFunc/plot, sigmoid
 (c) E.Farhi, ILL. License: EUPL.