Dynamica Project Matlab Code