https://nl.mathworks.com/help/robotics/ref/rigidbodytree.addsubtree.html
addSubtree - Add subtree to robot - MATLAB
This MATLAB function attaches the robot model, newSubtree, to an existing robot model, robot, at the body specified by bodyname.
addsubtreerobotmatlab