... MATLAB internally optimizes for some cases and passes by reference and only creates local copies if ...
www.mathworks.com