Download the repo inside MATLAB path
Open the simulink file (.slx)
Double click on the controller and dynamic block to check the code\
RaghavvGoel/EulerLangrangeDynamics_ParameterAdaptionWithNoise
Lyapunov based parameter adaptation for Euler-Lagrange model, the Regressor(Z) found analytically