# deval function in matlab

I can't understand how the deval function works in matlab, it's hard for me to understand the code, are there any books or descriptions of numerical methods where I can read about numerical algorithms, how to evaluate solutions of differential equations at the right points? I need to implement this feature myself. Thanks for the help!

• What exactly you do not understand? This function just evaluates the solution of a differential equation at some desired points. This is basically some interpolation. You will have to be more precise about what you want to do.
– KBS
Apr 2 at 19:07

So deval has just to determine the correct segment, the offset inside that segment, and evaluate the polynomial.