. . "However now that I have added some return values (each one is a large array with around 1500 double elements, the function returns 8~10 such arrays as opposed to just calculating them) the function seems to take longer to execute (checked using tic before the function call and toc after the function call." . .