https://www.mathworks.com/help/matlab/ref/matlab.io.savevariablestoscript.html
matlab.io.saveVariablesToScript - Save workspace variables to MATLAB script - MATLAB
This MATLAB function saves variables in the current workspace to a MATLAB script named filename.m.
matlabiosaveworkspacevariables
https://de.mathworks.com/help/matlab/ref/matlab.io.savevariablestoscript.html
matlab.io.saveVariablesToScript - Save workspace variables to MATLAB script - MATLAB
This MATLAB function saves variables in the current workspace to a MATLAB script named filename.m.
matlabiosaveworkspacevariables