Matlab Code framework