added Matlab pipeline code