设A为6阶方阵,将其副对角线的元素生成2×3矩阵B(要求不改变副对角线元素的列号),相应的命令是()。
A.B=reshape(diag(fliplr(A)),3,2)
B.B=reshape(diag(fliplr(A)),2,3)
C.B=reshape(diag(flipud(A)),3,2)
D.B=reshape(diag(flipud(A)),2,3)
正确答案:B=reshape(diag(flipud(A)),2,3)
猜你喜欢