标签: matlab permutation sparse-matrix
我想在Matlab中只置换稀疏矩阵的列。
我可以通过以下命令执行行和列排列:
permutedSparseMatrix=sparseMatrix(rowPermutation, columnPermutation);
答案 0 :(得分:1)
permutedSparseMatrix = sparseMatrix(:,columnPremutation)