Small modification of matlab template