M = reshape(linspace(11,18,8),[2,2,2]) M([1,2],[2,1],[2,1]) A1 = [2,2;2,1]; v = [2,1]; M(A1,v,1)
*****************************
ans = 14 12 14 12 14 12 13 11
i didnt get this ans, more precisely, im confused that what A1=[2,2;2,1] in M(A1,v,1) do???
************************************************************************
Best Answer