MATLAB documentation has the section Avoid Unnecessary Copies of Data in which the following statement can be found:
Copy-on-Write If a function d
Copy-on-Write
If a function d