I am computing a FIT using the HEAVISIDE function. This works fine inside MATLAB but fails with the following error in my compiled application.
??? Error using ==> fittype.fittype>fittype.fittype at 466 Expression a.*heaviside(b-x).*(b-x) is not a valid MATLAB expression, has non-scalar coefficients, or cannot be evaluated: Error in fittype expression ==> a.*heaviside(b-x).*(b-x) ??? Undefined function or method 'heaviside' for input arguments of type 'double'.
Best Answer