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?
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?