How to change two columns of a matrix?

Hello,everyone If i have a matrix A with dimension of 200*14. How can I switch column 2 with column 13? Thanks.

 Akzeptierte Antwort

Lei
Lei am 4 Mai 2012

0 Stimmen

A(:,[i,j])=A(:,[j,i]);?

Weitere Antworten (0)

Kategorien

Gefragt:

Lei
am 4 Mai 2012

Community Treasure Hunt

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

Start Hunting!

Translated by