added MATLAB file 

trgtregreg