Decrease Decimal Function Matlab Code