Maximum Likelihood Estimation

In this post, i want to estimate the maximum likelihood by numerical solution using matlab / octave. numerical solution used is based on Newton’s method and central difference for evaluation of the derivative values of the loglikelihood. here i will attach the matlab code which is simple and without built-in functions.