I am executing a code which makes hundreds of calls to CORR. I call CORR once on a large matrix to compute Pearson's linear correlation coefficient (default) as follows:
load returnsticret_corr1 = corr(returns,'type','Pearson');tocElapsed time is 0.081229 seconds.
When I execute the function hundreds of times, the overall time taken is extremely large.
Best Answer