https://www.mathworks.com/help/stats/wbllike.html
wbllike - Weibull negative loglikelihood - MATLAB
This MATLAB function returns the Weibull negative loglikelihood of the distribution parameters (params) given the sample data (x).
weibullnegativematlab