How to do a curve-fit with a less common function in MATLAB