https://jp.mathworks.com/help/uav/ref/eul2rotm.html
eul2rotm - Convert Euler angles to rotation matrix - MATLAB
This MATLAB function converts a set of Euler angles, eul, to the corresponding rotation matrix, rotm.
euler anglesrotation matrixconvertmatlab