https://au.mathworks.com/help/robotics/ref/urdfexporter.html
urdfExporter - Create URDF exporter object from rigid body tree robot model - MATLAB
Use urdfExporter object to generate a unified robot description format (URDF) file from the rigidBodyTree object.