I recently tried Levmar garage dlevmar_dif () function of curved surface fitting, surface model is the sum function of multiple cosine function, I had a lot of times, qDebug function of the input values are not wrong, but to find the fitting values and matlab vary too much, so I consider whether I ros function of writing is not correct, seek help from a great god!!!!!
This is dlevmar function, the input of p, x, m, n and certainly no error:
Matlab simulation functions of writing and ros contrast: