Matlab program for nonlinear analysis