How to change two columns of a matrix?

11 views (last 30 days)
Lei
Lei on 4 May 2012
Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

Accepted Answer

Lei
Lei on 4 May 2012
A(:,[i,j])=A(:,[j,i]);?

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by