Can MATLAB pass by reference? - MathWorks
www.mathworks.com › matlabcentral › answersJan 18, 2011 · If instead you are attempting to use pass-by-reference to avoid unnecessary copying of data into the workspace of the function you're calling, you should be aware that MATLAB uses a system commonly called "copy-on-write" to avoid making a copy of the input argument inside the function workspace until or unless you modify the input argument.