Update Phase2_1b.m

Edited to make it a function. It takes 2 file paths as parameters.