MatLab scripts for the linearized and non linear model