I am trying to fit a function using the gamma fit, but I think that my knowledge of the concept is too limited. Right now, I have 4 plotted lines, made up out of the same time vector for each x and 4 different signal intensity vectors for each y, but the curves should be fitted to extract the wanted information optimally. I expected to find a command that would take both my time vector and my intensity vector and create a gamma function that would approximate my curve, but I could not find such a command. Does anyone understand what I mean and if so, which commands should I use to fit the curve? Below I have added a figure with the 4 plotted lines, each of them was already resampled using the pchip command, hence the smooth line alongside the dashed line, which had the original samples. The gamma function would be made out of the time vector and the signal intensity vector that I made using the pchip command. Thanks in advance for any help you could give me!