This is a simple matlab script, written by Stefan Haessler of Laboratoire d'Optique Appliquée (LOA), CNRS, Institut Polytechnique de Paris, France. It solves the 1D nonlinear Schrödinger equation with a Kerr-nonlinearity and dispersion with a split-step method.
This simulates femtosecond laser pulse propagation in a medium, in particular in conditions that are typically used for hollow-core fiber post-compression.
This script has been used for the illustrations and animations in the lecture on laser post-compression (in french) that Stefan gave in 2017 at the CNRS "Ecole Thématique" Femto-UP.