设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)
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)