I'm trying to solve an equation of the form:
Y = Y0 - ( Un.* (A*Y0) + Vn.*(Y0*Z) )*delta_t
as efficiently as possible where Y0, Un, Vn, A, and Z are all square matrices of size on the order of 300 X 300 and delta_t is a constant.
Would computing A2 = A*Y0 and Z2 = Y0*Z followed by Un2 = Un.*A2 and Vn2 = Vn.*Z2 in parallel speed-up the overall computation of Y?
If so, what is the best way to do this (having access to the Parallel Computing Toolbox and a dual-core processor)?
Is there another/better way? Or does MATLAB automatically/internally optimize efficiency of such a computation?
Many thanks in advance...