MATLAB mathematical analysis