Generalized s-transformation matlab program and an annotated matlab example