https://nl.mathworks.com/help/simulink/slref/simulink.modelworkspace.savetosource.html
saveToSource - Save model workspace changes to the external data source of the model workspace -...
This MATLAB function saves the variables in the model workspace represented by the Simulink.ModelWorkspace object mdlWks to the MAT-file or script file...
to theexternal datasavemodelworkspace