Code generation support for PCHIP and other interpolation routines were added in R2014a if you are able to upgrade:
See the bullet labelled:
Code generation for fminsearch optimization function and additional interpolation functions in MATLAB
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!