Will MATLAB 'move' or ''copy return value?

Viewed 101

Given the following code

function [out] = doit() 
   out = [1,2,3,4,5,6];
end

tmp = doit();

Will MATLAB copy the memory of out to tmp or move it directly to tmp?

1 Answers
Related