更新时间:2022-03-28 05:24:09
MATLAB使用列主格式,为什么不利用该格式呢? M是5x5 所以, 第一列是M(1),M(2),M(3),M(4),M(5). 因此,概括一下:
MATLAB uses Column Major format, why not exploit that? M is 5x5 So, The first column is M(1), M(2), M(3), M(4), M(5). So, Generalizing this:
M(x,y)= M((x +(y-1)* 5)
M(x,y) = M((x+(y-1)*5)