on-internet
← Community

Fitting a custom function in MATLAB fails with "Inf computed by model function"

Stack Overflow ·

I am trying to fit a set of data in MATLAB with a custom function, which is no more than a Gaussian distribution with an additional x^d term. However, an error is encountered. Despite many efforts, I can't solve this problem. At the very beginning, I fit the following data, "data_x": 0 0.0500000000000000 0.100000000000000 0.150000000000000 0.200000000000000 0.250000000000000 0.300000000000000 0.350000000000000 0.400000000000000 0.450000000000000 0.500000000000000 0.550000000000000 0.600000000000000 0.650000000000000 0.700000000000000 0.750000000000000 0.800000000000000 0.850000000000000 0.9000

Comments

Sign in or sign up to comment and upvote.

No comments yet.