The MEAN function is multithreaded via SUM. However, executing MEAN in multithreading mode performs similar to single threading mode.
>> x = rand(1000);>> tic; mean(mean(x)); tocElapsed time is 0.002357 seconds.
Using ‘-singleCompThread’:
>> x = rand(1000);>> tic; mean(mean(x)); tocElapsed time is 0.002660 seconds.
Best Answer