MATLAB: Getting the values from the curve fitted model

curve fittingMATLAB

Is there a way i can get the new values of the datas ( x and y) from the curve fitted model?

Best Answer

If you used fit:
p=fit(...) %your model
y=p(x) %evaluate your model at x

Similarily, if you used polyfit:
p=polyfit(...) %your model
y=polyval(p,x) %evaluate your model at x
Related Question