I've been asked to recode a MATLAB simulation of a matching algorithm. Here's the basic idea:
d = data;
for s = 1:S
add randomness to data
run matching algorithm on data
store result
end
It was suggested to me that recoding using objects will speed up the code. Will, for example, recoding data as an instance speed up the code? The idea was that rather than passing this big data matrix back and forth between functions, if only a pointer is passed back and forth, this will be faster. Is this true in general? Might it be true?
Thank you!