Depreciated Matlab Code