http://mirlab.org/jang/books/matlabprogramming4guru/02-1_Optimization4codeNmem.asp?title=2-1%2B%25A6V%25B6q%25A4%25C6%25B9B%25BA%25E2%25BBP%2BJIT%2B%25A5[%25B3t&fbclid=IwAR3ddB36DB2QpyJ7rQf95Y9JDFiYaSMTu4BRafeHWTu6XZW6GKvO34DHAcw
內文提到
% 第一種方法:for-loop operation
for p = 1:n
for q = 1:n
c1(p, q) = a(p, q)*b(p, q);
% 第二種方法:vectorized operation
c2 = a.*b;
.....第一種方法用矩陣元素互乘 竟比第二種方法快?
確定嗎 我好像看過完全相反的說法= =?