How to Estimate Remaining Useful life with MATLAB