some technical questions on how matlab/octave handle function
arguments came up in the review last night. here's a comprehensive
answer from doug hull (who's at mathworks):
http://www.mathworks.com/matlabcentral/answers/152-can-matlab-pass-by-reference
"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. If you do not modify the input
argument, MATLAB will avoid making a copy."
this is for "value objects"---read more for passing handle objects by
reference.
-j
p.s. i'm guessing octave has similar functionality, but am not certain
of this.