Scattering Network for Matlab