https://www.mathworks.com/help/simbio/ref/simbiology.model.copyobj.html
copyobj - Copy SimBiology object and its children - MATLAB
This MATLAB function makes a copy of a SimBiology model object modelObj and returns the copied model object copiedObj.
copysimbiologyobjectchildrenmatlab