adding matlab code in src folder