如给定行向量【1,2,3,4,5,6,7,8】,通过此行向量生成一个循环矩阵如下图,
代码如下:
B = [1,2,3,4,5,6,7,8];
BC = zeros(N);
for j = 1:N
BC(j,:) = circshift(B,[0,j-1]);
end
如给定行向量【1,2,3,4,5,6,7,8】,通过此行向量生成一个循环矩阵如下图,
代码如下:
B = [1,2,3,4,5,6,7,8];
BC = zeros(N);
for j = 1:N
BC(j,:) = circshift(B,[0,j-1]);
end