https://www.mathworks.com/help/phased/ref/rotx.html
rotx - Rotation matrix for rotations around x-axis - MATLAB
This MATLAB function creates a 3-by-3 matrix for rotating a 3-by-1 vector or 3-by-N matrix of vectors around the x-axis by ang degrees.
rotation matrixrotxrotationsaroundaxis