What is the simplest way to get an element of an matrix multiplication?
Assume $A$ and $B$ are $n\times n$ matricies. And $1\le i\le n$ and $1\le j\le n$ are inidicies
I tried $(A*B)(i,j)$ but this is no valid MATLAB syntax.
Sure an other way is $C=A*B$ and then $C(i,j)$ but this to complex and long for me.
Is there a trick to do that in a simple and compact way?
Thanks
dotis equivalent toA(i,:)'*B(:,j). – horchler Sep 09 '14 at 22:56'. It should be.'. The distinction matters if the matrix is complex – Luis Mendo Jan 28 '15 at 16:43