The aim of this work is to present a MATLAB implementation of different methods for estimating the term structure of interest rate. More precisely, we implement the exponential functional form of Nelson-
Siegel and polynomial spline methods (with or without penalty term), considering both coupon bonds,like Italian Btp, and Libor and Swap interest rates. Furthermore, we compare the models’performances,considering both computational costs and approximation results.