I have eyeposition data from a saccade and I would like to fit a piecewise function that has a linear fit before the onset of the saccade and an exponential fit after. I can clearly define the onset. How do I best do this? I was told to use the nlinfit function for that, but I'm not sure how to define the inputs well.
MATLAB: How to fit a piecewise nonlinear function to the data
nonlinear fitpiecewise fit
Best Answer