Updated matlab code
updated matlab codes again