First and second order properities with MATLAB