I use Matlab R2018a on MAC and would like to fit my spike waveform data with a Naka–Rushton fit. I found three functions in Psychtoolbox/Psychometric/: FitNakaRushton, ComputeNakaRushton, FitNakaRushtonFun. Nevertheless there is not a lot of description provided with them and I don’t know how to use them. I tried the following sequence but got a flat horizontal line as a fit…
x=(1:1:391); %time axis
y = templateAllALL4(1,1:391); % spike waveform
[params,f] = FitNakaRushton(x,y,[1, 0.5, 3]);
[response] = ComputeNakaRushton(params,x);
[f] = FitNakaRushtonFun(params,x,response);
Does anyone have any experience with Naka–Rushton fit and these functions?
Thanks in advance for your help!