Hi Hermes,
The example stated in the rod2angle documentation works fine for me both in MATLAB online as well as MATLAB R2023a desktop. I would suggest reinstalling the Aerospace Toolbox and checking for any missing dependencies. If the issue persists, you should raise a help ticket for the same.
Attaching links for your reference.