Matlab Codes 1. Version