paralleling sequence of matrix multiplication

Hello
in my function, there are a lot of element wise matrix multiplication which are independent. is there a way to calculate them in parallel ?
all of theme are very simple operations, but 70% of my run time is for these part of code because this function invoked million times
Thank you
function [r1,r2,r3]=backward(A,B,C,D,E,F,r1,r2,r3)
r1=A.*B;
r2=C.*D;
r3=E*F;
end

Answers (1)

There's a page in the Parallel Computing Toolbox doc that is specifically geared towards helping you choose how to speed up your algorithm using parallelism.

Asked:

on 18 Jun 2016

Answered:

on 20 Jun 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!