Final Matlab Code

FInal Maatlab Code