To determine the Lagrangian of a 2-link robot arm with 3 degrees of freedom, it is essential to calculate the kinetic and potential energy based on the arm's configuration. The provided resource from Caltech is a useful reference for understanding manipulator dynamics. Users express challenges in implementing equations of motion for displacement, velocity, and torque in Matlab/Simulink. Suggestions for overcoming these implementation hurdles are sought. Proper guidance on coding these equations in Matlab/Simulink can facilitate the design process.