https://se.mathworks.com/help/robotics/ref/rigidbody.updateframe.html
updateFrame - Update frame in rigid body - MATLAB
This MATLAB function updates the frame name, parent frame name and the rigid body associated with the frame using different name-value arguments.
rigid bodyupdateframematlab