How to change two columns of a matrix?

10 次查看(过去 30 天)
Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

采纳的回答

Lei
Lei 2012-5-4
A(:,[i,j])=A(:,[j,i]);?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by