Most of the functions in the book already exist in MATLAB in much more numerically robust implementations. However, here is a description of how to extend MATLAB with Numerical Recipes. It also serves as an introduction to MEX in matlab.